Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[server] Add workaround for intermittent Safari CORS errors #4540

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Conversation

mnvr
Copy link
Member

@mnvr mnvr commented Dec 30, 2024

At times, Safari will fail our API responses because its CORS preflight fails. The errors are reproducible, but intermittently, and not on localhost. We seem not to be the first ones to hit this.

Based on a hint from:

supabase/supabase#20982 (comment)

Modify our CORS responses to use 200 instead of 204 to try and fix Safari.

At times, Safari will fail our API responses because its CORS preflight fails.
The errors are reproducible, but intermittently, and not on localhost.  We seem
not to be the first ones to hit [this](processing/p5.js-web-editor#3156).

Based on a hint from:

supabase/supabase#20982 (comment)

Modify our CORS responses to use 200 instead of 204 to try and fix Safari.
@mnvr mnvr merged commit 93071af into main Dec 30, 2024
2 checks passed
@mnvr mnvr deleted the cors branch December 30, 2024 13:24
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.

2 participants