Fix dev API calls being blocked as mixed content over https
The Geolocation fix made the dev server https://-only, but the backend it talks to is still plain http:// - browsers hard-block that as mixed content for fetch/XHR/WebSocket with no user override, so every API call silently failed once loaded over the required https URL. Adds a same-origin proxy in vite.config.ts (dev only) so the browser only ever talks to https://<dev server>/api/..., with the actual http:// hop happening server-side in Node where mixed-content rules don't apply. VITE_API_BASE_URL is switched to the relative "/api" for dev via .env.development.local (gitignored, not committed); production builds are unaffected and still use the real absolute URL from .env. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
Please
register
or
sign in
to comment