You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
It seems that there is no way to properly set the
CORS
headers usingserverless-http
for netlify.For the case with AWS it's possible to configure headers in
serverless.yaml
, but for netlify header config used innetlify.toml
and_headers
somehow gets overwritten byserverless-http
, so after successful preflight, you would still getCORS
error while sending request from other origin.The text was updated successfully, but these errors were encountered: