python 解决跨域

不写BUG 1年前 ⋅ 967 阅读
from flask_cors import *
app = Flask(__name__)
CORS(app, supports_credentials=True)
api = Api(app)