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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)