-
Notifications
You must be signed in to change notification settings - Fork 334
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 Problem #1471
Comments
How are you running it? With |
I have the same problem. I have added all the CORS related headers but it doesn't work for some reason.
I have a Go encore app and using TS generated client. It doesn't work on normal fetch as well. It is working fine on from cc @eandre |
|
@luvvvdev would you mind testing with the latest version of encore? We've made some cors fixes that might relate to your problem, depending on where you see them? (is it via |
My encore.app config:
{ "id": "", "lang": "typescript", "global_cors": { "debug": true, "allow_origins_without_credentials": ["http://localhost:3000"], "allow_origins_with_credentials": ["http://localhost:3000"], "allow_headers": ["*"] } }
Steps to reproduce:
Expectation:
Request from web application will be executed without errors
Reality:
Access to XMLHttpRequest at 'http://localhost:4000/auth.login' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
The text was updated successfully, but these errors were encountered: