This is my code:
@app.route(\'/hello\', methods=[\"POST\"]) def hello(): resp = make_response() resp.headers[\'Access-Control-Allow-Origin\'] = \'*\'
This was how added my headers in my flask application and it worked perfectly
@app.after_request def add_header(response): response.headers['X-Content-Type-Options'] = 'nosniff' return response