I am using Flask (based on Werkzeug) which uses Python.
The user can download a file, I\'m using the send_from_directory-function.
However when actually down
I needed this also, but for every requests, so here's what I did (based on the doc) :
@app.after_request def after_request(response): response.headers.add('Access-Control-Allow-Origin', '*') return response