ada-web

Ada AI is a specialized coding...
Log | Files | Refs | README | LICENSE

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:
Mbackend.py | 7++++++-
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
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror