参考这篇文章
https://www.cnblogs.com/hanbowen/p/9899088.html
cmd
pip install flask-cors
配置
...
app.config['JSON_AS_ASCII'] = False
CORS(app, supports_credentials=True)
DATABASE = 'autorec.db'
...
参考这篇文章
https://www.cnblogs.com/hanbowen/p/9899088.html
pip install flask-cors
...
app.config['JSON_AS_ASCII'] = False
CORS(app, supports_credentials=True)
DATABASE = 'autorec.db'
...
本文标题:flask--跨域问题解决
本文链接:https://www.haomeiwen.com/subject/djfgjltx.html
网友评论