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?
来源:https://stackoverflow.com/questions/44221840/handling-the-options-method-request-with-flask-rest-api