diff --git a/app.py b/app.py index 99c5da2..1820957 100644 --- a/app.py +++ b/app.py @@ -1,7 +1,9 @@ from flask import Flask, jsonify +from flask_cors import CORS def create_app(): app = Flask(__name__) + CORS(app) @app.route("/health", methods=["GET"]) def health_check(): diff --git a/requirements.txt b/requirements.txt index d09d406..5216628 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,5 @@ requests==2.31.0 numpy==1.26.2 pytest==7.4.3 python-dotenv==1.0.0 -mongomock==4.1.2 \ No newline at end of file +mongomock==4.1.2 +Flask-CORS==4.0.0 \ No newline at end of file