commit ccd68b96ca8f9ac47fc3436f0ad3130628d4bdd9
parent aa69ca8f33d719865fb02a51817ff4014b0d3475
Author: AMIT DUTTA <amitdutta4255@gmail.com>
Date: Sat, 17 Jan 2026 21:18:15 +0530
Add new CORS origin for ada-web.onrender.com
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/backend.py b/backend.py
@@ -10,7 +10,12 @@ 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"]}})
+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"
+]}})
# 1. Firebase Admin Init (Server-Side Security)
# Ensure you have your service account json or environment variables set up in Render