当前位置:网站首页>Flask solves the problem of CORS err
Flask solves the problem of CORS err
2022-07-05 17:24:00 【go_ flush】
- First of all , You have to make sure your nginx Has been configured to allow cross domain
for example :
stay location Add the following :
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods GET,POST,PUT,DELETE;
Then install flask Solve cross domain packages
pip install flask_corsHow to use it is as follows :
from flask_cors import CORS
app = Flask(__name__)
CORS(app,supports_credentials=True)
边栏推荐
- 域名解析,反向域名解析nbtstat
- thinkphp3.2.3
- CMake教程Step4(安装和测试)
- Embedded -arm (bare board development) -1
- 7.Scala类
- WR | 西湖大学鞠峰组揭示微塑料污染对人工湿地菌群与脱氮功能的影响
- Excuse me, is the redis syntax used in DMS based on the commands of the redis community version of the cloud database
- How MySQL uses JSON_ Extract() takes JSON value
- How to write a full score project document | acquisition technology
- Rider 设置选中单词侧边高亮,去除警告建议高亮
猜你喜欢

Embedded UC (UNIX System Advanced Programming) -1

How to write a full score project document | acquisition technology
![[first lecture on robot coordinate system]](/img/3c/af056f0fe68b3244a3dc491ceb291d.png)
[first lecture on robot coordinate system]

URP下Alpha从Gamma空间到Linner空间转换(二)——多Alpha贴图叠加

Judge whether a number is a prime number (prime number)
MySQL queries the latest qualified data rows

机器学习01:绪论
Database design in multi tenant mode

Practical example of propeller easydl: automatic scratch recognition of industrial parts

33: Chapter 3: develop pass service: 16: use redis to cache user information; (to reduce the pressure on the database)
随机推荐
Embedded-c language-6
漫画:寻找股票买入卖出的最佳时机
机器学习01:绪论
国内首家 EMQ 加入亚马逊云科技「初创加速-全球合作伙伴网络计划」
华为云云原生容器综合竞争力,中国第一!
一文了解MySQL事务隔离级别
Q2 encryption market investment and financing report in 2022: gamefi becomes an investment keyword
叩富网开期货账户安全可靠吗?怎么分辨平台是否安全?
2022 年 Q2 加密市场投融资报告:GameFi 成为投资关键词
ECU introduction
漫画:如何实现大整数相乘?(整合版)
CMake教程Step6(添加自定义命令和生成文件)
Wechat official account web page authorization login is so simple
mysql中取出json字段的小技巧
thinkphp3.2.3
Design of electronic clock based on 51 single chip microcomputer
SQL删除重复数据的实例教程
Use of ThinkPHP template
Error in compiling libssh2. OpenSSL cannot be found
漫画:一道数学题引发的血案