Commit 184e184
fix(backend): use redirect:'manual' in frontend API proxy fetch
fetch() defaults to redirect:'follow', which causes it to chase
same-origin redirects server-side. When FAPI returns a 302 back to
the app origin (e.g. after OAuth callback), the proxy's fetch follows
the redirect internally — hitting the app without auth cookies —
instead of passing the 302 to the browser. This breaks OAuth flows
by rendering the sign-in page at the callback URL.
Adding redirect:'manual' ensures the 302 is returned to the browser
as-is, letting the browser handle the navigation with proper cookies.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 857823e commit 184e184
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
275 | 280 | | |
276 | 281 | | |
277 | 282 | | |
| |||
0 commit comments