Handling the OPTIONS method request with Flask rest api`

Viewed 1301

I am sending post requests to the rest-api written in Flask using jquery. Along with the post request an options request is also being sent and the app is not functioning the desired way.

But when I send the same from Postman of Curl, it produces the results fine. I think I should be handling the request method for 'options' but I am not sure how to do it.

Can any one help me?

0 Answers
Related