commit ac09cd40dc4c6a560d5e57cfc9bae12404477d88
parent e522bc837c684084443fa2960a4b8ef53178f625
Author: AMIT DUTTA <amitdutta4255@gmail.com>
Date: Sun, 18 Jan 2026 13:44:52 +0530
Add CORS support for API in backend.py
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/backend.py b/backend.py
@@ -7,6 +7,7 @@ import google.generativeai as genai
import firebase_admin
from firebase_admin import credentials, auth, firestore
+
# --- INIT APP & CONFIG ---
app = Flask(__name__)
# Allow CORS for your domain and localhost for testing