app = Flask(__name__)
cors = CORS(app)
app.config['CORS_HEADERS'] = 'Content-Type'

@app.route('/')
@cross_origin()
def helloWorld():
    return 'Hello, cross-origin-world!'
How to enable CORS in flask and heroku