Env implementation

This commit is contained in:
sumona-banerjeee
2026-02-20 17:01:57 +05:30
parent 580b5b8aa3
commit 5366230a4a
9 changed files with 3273 additions and 13 deletions

View File

@@ -145,7 +145,11 @@ app = FastAPI(title="YOLOPOTHOLE API", version="1.0.0")
# CORS configuration
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:3000"], # Frontend URL
allow_origins=[
"http://localhost:3000",
"https://karlene-unprovoked-lithely.ngrok-free.dev/api/v1",
"https://secret-pharmaceutical-murphy-traffic.trycloudflare.com"
],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],