-
Notifications
You must be signed in to change notification settings - Fork 1
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
Cors bug with Safari #7
Comments
Strange. I wonder if Safari's CORS implementation is excessively strict. Are you still encountering this issue? Unfortunately I don't have an Apple device to test out Safari so this isn't something I can fix immediately. |
Yes. Happy to help debug it any way I can. I did try one more thing: Safari has a developer setting
<html>
<head><title>421 Misdirected Request</title></head>
<body>
<center><h1>421 Misdirected Request</h1></center>
<hr><center>nginx/1.22.1</center>
</body>
</html> |
In the logs, I only saw a 405 error being raised by the FastAPI application downstream. I have no idea why the 421 error is being thrown by Nginx (is my SSL misconfigured?). The 405 error was caused by a HEAD request, so I added HEAD support to the API. Does that help? |
Hmm. After reloading the page a couple of times to clear the cache, it was actually working. However, somehow it just stopped again while I was writing this here. Not sure maybe some other cache that needs to be cleared first? I'll try it tomorrow. Not sure if it helps but this is a log for one of the successful requests
|
Encountered this error today.
Opening the dev console shows:
Interestingly, it seems to work fine with Chrome. Not exactly sure what's going on here with Safari.
The text was updated successfully, but these errors were encountered: