Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python flask access-control-allow-origin

@app.route('your route', methods=['GET'])
def yourMethod(params):
    response = flask.jsonify({'some': 'data'})
    response.headers.add('Access-Control-Allow-Origin', '*')
    return response
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #flask
ADD COMMENT
Topic
Name
9+6 =