flask-cors icon indicating copy to clipboard operation
flask-cors copied to clipboard

cors error with application/json and without json

Open dodler opened this issue 4 years ago • 2 comments

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?

dodler avatar Dec 25 '21 09:12 dodler

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.

EdmundsEcho avatar Jan 24 '22 00:01 EdmundsEcho

Try checking out Issue about cors

nejat-njonjo avatar Feb 07 '22 16:02 nejat-njonjo