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

Added no-cors mode to fetch call #255

Closed
wants to merge 1 commit into from
Closed

Added no-cors mode to fetch call #255

wants to merge 1 commit into from

Conversation

boris-glumpler
Copy link

As I mentioned in #250, I prefer to use real domains instead of something like http://localhost:3000 when developing. This led to a CORS issue, tho, when using the devtools. This pull request disables CORS for the request. Devtools are only used locally, so this change shouldn't impact security, I guess. Adding this option means that the response cannot be read, but this doesn't seem to be the case anyways.

More info here: https://developer.mozilla.org/en-US/docs/Web/API/Request/mode

@boris-glumpler
Copy link
Author

Found the solution (see #250), so this PR isn't needed anymore.

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

Successfully merging this pull request may close these issues.

None yet

1 participant