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 error with application/json and without json #302

Open
dodler opened this issue Dec 25, 2021 · 2 comments
Open

cors error with application/json and without json #302

dodler opened this issue Dec 25, 2021 · 2 comments

Comments

@dodler
Copy link

dodler commented Dec 25, 2021

I'm making request with header application/json but no json provided and I get cors error. However my cors makes no error, when this header is not provided.

It also works vice versa (json provided, but no header application/json)

Is it correct?

@EdmundsEcho
Copy link

EdmundsEcho commented Jan 24, 2022

I seem to be getting the same behavior. I tried to be more explicit in my headers by specifying json content and out of "nowhere" I'm getting cors errors. Note: I'm using axios on the client-side. CORS is all server-side, so I can't explain the behavior.

@nejat-njonjo
Copy link

Try checking out Issue about cors

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

No branches or pull requests

3 participants