Skip to content

Commit 55dd076

Browse files
committed
fix the allowed origin
1 parent 5a84744 commit 55dd076

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

server/app/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Settings(BaseSettings):
1616
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
1717
REFRESH_TOKEN_EXPIRE_DAYS: int = 7
1818

19-
ALLOW_ORIGINS: list[str] = ["http://localhost:8000", "http://localhost:5173"]
19+
ALLOW_ORIGINS: str = ""
2020

2121
# JWT secrets
2222
JWT_ACCESS_SECRET_KEY: str = ""

server/app/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ def create_app() -> FastAPI:
7878
app = FastAPI(lifespan=lifespan)
7979

8080
app.include_router(router=router)
81-
81+
logger.error(f"{settings.ALLOW_ORIGINS=}")
8282
app.add_middleware(
8383
CORSMiddleware,
84-
allow_origins=settings.ALLOW_ORIGINS,
84+
allow_origins=[settings.ALLOW_ORIGINS],
8585
allow_credentials=True,
8686
allow_methods=["*"],
8787
allow_headers=["*"],

0 commit comments

Comments
 (0)