From 4f936bb307275e34817599159e5be1c4dd5ec2f6 Mon Sep 17 00:00:00 2001 From: Yogini Aishwaryaa P T S Date: Sat, 4 Apr 2026 18:09:25 +0530 Subject: [PATCH] chore: add flask-cors for future CORS support --- app.py | 2 ++ requirements.txt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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