We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a84744 commit 55dd076Copy full SHA for 55dd076
2 files changed
server/app/core/config.py
@@ -16,7 +16,7 @@ class Settings(BaseSettings):
16
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
17
REFRESH_TOKEN_EXPIRE_DAYS: int = 7
18
19
- ALLOW_ORIGINS: list[str] = ["http://localhost:8000", "http://localhost:5173"]
+ ALLOW_ORIGINS: str = ""
20
21
# JWT secrets
22
JWT_ACCESS_SECRET_KEY: str = ""
server/app/main.py
@@ -78,10 +78,10 @@ def create_app() -> FastAPI:
78
app = FastAPI(lifespan=lifespan)
79
80
app.include_router(router=router)
81
-
+ logger.error(f"{settings.ALLOW_ORIGINS=}")
82
app.add_middleware(
83
CORSMiddleware,
84
- allow_origins=settings.ALLOW_ORIGINS,
+ allow_origins=[settings.ALLOW_ORIGINS],
85
allow_credentials=True,
86
allow_methods=["*"],
87
allow_headers=["*"],
0 commit comments