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