Commit a8be51d
committed
🐛 Send Origin from book-file proxy to fix ORIGIN_NOT_FOUND
The server-side proxy added in 0f582c6 fetches `/ebook-cors/`
server-to-server, which sends no Origin header — but the upstream CORS
gate rejects an absent Origin with ORIGIN_NOT_FOUND, blocking the
request before the Bearer JWT/ownership check runs. Attach our own
whitelisted origin (BASE_URL) so the gate passes.1 parent 882e768 commit a8be51d
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
0 commit comments