Skip to content
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 Header error only when Published and only on Safari #6296

Closed
AdbC2011 opened this issue Jul 11, 2020 · 2 comments
Closed

CORS Header error only when Published and only on Safari #6296

AdbC2011 opened this issue Jul 11, 2020 · 2 comments
Labels
to-be-reproduced Used in order for Amplify to reproduce said issue

Comments

@AdbC2011
Copy link

Describe the bug
I have a React app accessing a lambda function and the react app is hosted on amplify. When the react app is run on my local machine it passes the Cors checks and everything is fine; however once it is hosted on amplify the Cors headers check fails. The code just uses fetch on the api. Everything works on Chrome, but not Safari.

Screenshots
Here is the console log on Safari
Screen Shot 2020-07-11 at 18 46 21 am

What is Configured?
The lambda function returns allow headers, allow origin and access credentials true for both GET and OPTIONS calls and can be verified in postman

@AdbC2011 AdbC2011 added the to-be-reproduced Used in order for Amplify to reproduce said issue label Jul 11, 2020
@AdbC2011
Copy link
Author

accidental, this could well be Safari complaining about Access Headers set to *

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
to-be-reproduced Used in order for Amplify to reproduce said issue
Projects
None yet
Development

No branches or pull requests

1 participant