commit 5c38fa8f945b9d4f1e22252222b6b46ed3872462
parent ccd68b96ca8f9ac47fc3436f0ad3130628d4bdd9
Author: AMIT DUTTA <amitdutta4255@gmail.com>
Date: Sat, 17 Jan 2026 21:35:44 +0530
Simplify CORS configuration in backend.py
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/backend.py b/backend.py
@@ -10,12 +10,7 @@ from firebase_admin import credentials, auth, firestore
# --- INIT APP & CONFIG ---
app = Flask(__name__)
# Allow CORS for your domain and localhost for testing
-CORS(app, resources={r"/api/*": {"origins": [
- "https://amit.is-a.dev",
- "http://127.0.0.1:5500",
- "http://localhost:5000",
- "https://ada-web.onrender.com"
-]}})
+CORS(app, resources={r"/api/*": {"origins": ["https://amit.is-a.dev", "http://127.0.0.1:5500", "http://localhost:5000"]}})
# 1. Firebase Admin Init (Server-Side Security)
# Ensure you have your service account json or environment variables set up in Render