Flask 3 · Blueprints, database and CORS
Allow cross-origin requests
Let a browser app on another origin call your API.
pip install flask-cors
from flask_cors import CORS
CORS(app, origins=["https://app.example.com"])
Official Flask 3 documentation
More blueprints, database and cors commands
All blueprints, database and cors commands · Flask 3 cheatsheet