update db str

This commit is contained in:
2026-03-05 12:43:44 +05:30
parent eabf295f2e
commit 6e184dc590
27 changed files with 2780 additions and 146 deletions

View File

@@ -23,13 +23,13 @@ app = FastAPI(
lifespan=lifespan
)
# CORS middleware
# CORS middleware (MUST be before routes)
app.add_middleware(
CORSMiddleware,
allow_origins=[settings.frontend_url,
"http://localhost:8000", "http://127.0.0.1:8000"],
allow_origins=["http://localhost:8000",
"http://127.0.0.1:8000", "http://localhost:5173"],
allow_credentials=True,
allow_methods=["*"],
allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"],
allow_headers=["*"],
)