Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 174 Bytes

cors.md

File metadata and controls

11 lines (9 loc) · 174 Bytes

在 flask 中处理跨域问题

//安装 flask-cors
pip3 install -U flask-cors

//在代码中引入
from flask_cors import CORS

app = Flask(__name__)
CORS(app)