Skip to content

Use a local proxy in dev mode - #2947

Merged
jake-low merged 1 commit into
v4from
jlow/fix-local-dev-v4
Oct 28, 2026
Merged

jake-low merged 1 commit into
v4from
jlow/fix-local-dev-v4

Conversation

@jake-low

Copy link
Copy Markdown
Contributor

The stricter cookie policy I recently added to the backend (SameSite=Lax) breaks local development. The standard fix for this is to proxy backend requests through the dev server so that the browser believes they are same-origin.

I set this up so it's automatically enabled in dev mode, so no .env changes are needed. I also collapsed VITE_API_BASE_URL and VITE_MAP_ROULETTE_SERVER_WEBSOCKET_URL into one property, since it wouldn't ever make sense to point these at different backends.

@CollinBeczak
CollinBeczak force-pushed the jlow/fix-local-dev-v4 branch from 225f66e to 6d15244 Compare October 21, 2026 16:22
@jake-low
jake-low merged commit 57e19e3 into v4 Oct 28, 2026
5 checks passed
@jake-low
jake-low deleted the jlow/fix-local-dev-v4 branch October 28, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant