Commit 60f85ef5 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Add CORS middleware for the new stax_webapp frontend

No CORS configuration existed at all - every fetch() from a browser-based
frontend on a different origin (localhost:5173, or the dev server's own
:5173) would have been silently blocked. Auth here is a Bearer token in
localStorage, never a cookie, so allow_credentials isn't needed - origins
are read from CORS_ORIGINS (comma-separated), defaulting to the webapp's
known dev origins.

Verified: OPTIONS preflight to /auth/request_code from
http://144.76.210.145:5173 now gets a correct
Access-Control-Allow-Origin response.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent a250228b
Pipeline #1025 canceled with stage