corydolphin / flask-cors

Cross Origin Resource Sharing ( CORS ) support for Flask
https://flask-cors.corydolphin.com/
MIT License
873 stars 140 forks source link

set Accept headers #296

Open manjunathb4461 opened 3 years ago

manjunathb4461 commented 3 years ago

According to w3 rules we have to set accept headers to */* for every OPTIONS request

corydolphin commented 3 years ago

According to w3 rules we have to set accept headers to */* for every OPTIONS request

Thank you for taking the time to make a PR. In my read of the W3 spec, the accept header should be specified by the client. Did you run into an issue whc

manjunathb4461 commented 3 years ago

Thanks for reviewing the PR. I believe since it is a pre-flight request we need to intimate to the user data type accepted in the real request.