CORS跨域

cooolr 于 2020-11-25 发布

安装

pip install flask_cors

示例

from flask_cors import *

app = Flask(__name__)
CORS(app, resources=r'/*')