diff --git a/app.py b/app.py index 12e1327..fa5fd75 100644 --- a/app.py +++ b/app.py @@ -8,12 +8,14 @@ import datetime from flask import Flask, jsonify, redirect +from flask_cors import CORS from config import Config from routes import register_routes app = Flask(__name__) app.config.from_object(Config) +CORS(app) @app.route("/", methods=["GET"]) diff --git a/requirements.txt b/requirements.txt index 1a1bdb5..45fafdf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ argon2-cffi>=23.1.0 flask>=3.0.3 +flask-cors>=5.0.0 pymysql>=1.1.1 pytest>=8.3.3 python-dotenv>=1.0.1