Handling the OPTIONS method request with Flask rest api`

拈花ヽ惹草 提交于 2019-12-07 19:15:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!