Env implementation
This commit is contained in:
@@ -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=["*"],
|
||||
|
||||
Reference in New Issue
Block a user