📅  最后修改于: 2022-03-11 14:55:33.554000             🧑  作者: Mango
@app.route('your route', methods=['GET'])
def yourMethod(params):
response = flask.jsonify({'some': 'data'})
response.headers.add('Access-Control-Allow-Origin', '*')
return response