corydolphin / flask-cors

Cross Origin Resource Sharing ( CORS ) support for Flask
https://flask-cors.readthedocs.io/en/latest/index.html
MIT License
884 stars 139 forks source link

cors error with application/json and without json #302

Open dodler opened 2 years ago

dodler commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Try checking out Issue about cors