☆ 9 r/frontend ·by Nick ·2026-10-27 fetch with credentials still gets 403 across origins 256 views Frontend on localhost:5173 calls an API on localhost:8787. I send credentials: include and the server sets Access-Control-Allow-Origin: *. Browser blocks it. ⧉ Copy link⚑ Report
☆ 0 P Paul ·2026-10-27#1 Wildcard is not allowed with credentials. The server must return the exact origin and Access-Control-Allow-Credentials: true. ⧉ Copy link⚑ Report
☆ 0 N Nick ·2026-10-27#2 Changed that and now the preflight fails because Authorization is not allowed. ⧉ Copy link⚑ Report
☆ 0 D Dan ·2026-10-27#3 Add Authorization to Access-Control-Allow-Headers on the OPTIONS response, and make sure the server handles OPTIONS without requiring auth. ⧉ Copy link⚑ Report
3 replies