Javascript – No ‘Access-Control-Allow-Origin’ header is present on the requested resource

I have used the flask-cors extension.

Install using pip install flask-cors

Then it’s simply

from flask_cors import CORS
app = Flask(__name__)
CORS(app)

This will allow all domains

Leave a Comment