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
Running a local express server that hosts an API on port 5001. Frontend runs on port 3000. The express is correctly configured with the cors middleware which accepts localhost:5001 and localhost:3000. The request failed due to:
"Access to fetch at 'http://localhost:5001/px-platform-dev-a1ec4/us-central1/api/v1/auth/login' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'."
This could have something to do with #4227 but I'm not sure.
[REQUIRED] Steps to reproduce
See above
[REQUIRED] Expected behavior
The request should pass preflight. This is not an issue with [email protected]
[REQUIRED] Actual behavior
It fails preflight so nothing get's logged to the terminal.
The text was updated successfully, but these errors were encountered:
Hey @vpanyushenko. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@vpanyushenko if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
[REQUIRED] Environment info
[email protected]
firebase-tools:10.2.2
MacOS
[REQUIRED] Test case
Running a local express server that hosts an API on port 5001. Frontend runs on port 3000. The express is correctly configured with the
cors
middleware which accepts localhost:5001 and localhost:3000. The request failed due to:"Access to fetch at 'http://localhost:5001/px-platform-dev-a1ec4/us-central1/api/v1/auth/login' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'."
This could have something to do with #4227 but I'm not sure.
[REQUIRED] Steps to reproduce
See above
[REQUIRED] Expected behavior
The request should pass preflight. This is not an issue with [email protected]
[REQUIRED] Actual behavior
It fails preflight so nothing get's logged to the terminal.
The text was updated successfully, but these errors were encountered: