安装:pip install -U flask-cors
pip install -U flask-cors
from flask import Flask from flask.ext.cors import CORS app = Flask(__name__) CORS(app) @app.route("/") def helloWorld(): return "Hello, cross-origin-world!"
LINK: