Commit 8543c1b
committed
fix(api): disable redirect_slashes to prevent CORS issues
FastAPI's default redirect_slashes=True was causing 307 redirects
that lost the port number, redirecting from :8001 to port 80 (K3s ingress)
which blocked requests due to missing CORS headers.1 parent 2c3d684 commit 8543c1b
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
155 | | - | |
| 158 | + | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| |||
0 commit comments