Skip to content

CORS issue for serverless-http #9

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

Open
Slava-Ini opened this issue Nov 8, 2022 · 0 comments
Open

CORS issue for serverless-http #9

Slava-Ini opened this issue Nov 8, 2022 · 0 comments

Comments

@Slava-Ini
Copy link

It seems that there is no way to properly set the CORS headers using serverless-http for netlify.
For the case with AWS it's possible to configure headers in serverless.yaml, but for netlify header config used in netlify.toml and _headers somehow gets overwritten by serverless-http, so after successful preflight, you would still get CORS error while sending request from other origin.

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

No branches or pull requests

1 participant