bradamelton / saberfin.io

Issues for the https://saberfin.io website
0 stars 0 forks source link

Getting Typeerror: Failed to fetch #98

Closed bradamelton closed 1 year ago

bradamelton commented 1 year ago

from inside the signin popup.

https://stackoverflow.com/questions/49343024/getting-typeerror-failed-to-fetch-when-the-request-hasnt-actually-failed

Yet another CORS thing

https://medium.com/@baphemot/understanding-cors-18ad6b478e2b

bradamelton commented 1 year ago

Will need to updates CORS (allow specific sources) before enabling prod.

PROD is currently disabled for pushing CORS headers.

Access to fetch at 'https://saberfin.io:7772/minoa/v1/user' from origin 'https://saberfin.io' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values ', ', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.