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