update CORS
All checks were successful
Gitea Actions Demo / check (push) Successful in 9s

This commit is contained in:
Sam Liu 2024-09-30 18:34:57 +07:00
parent 18f0f78de0
commit 5832bb6b3c

View File

@ -54,7 +54,7 @@ app = FastAPI(
app.add_middleware(GZipMiddleware, minimum_size=1000)
if not settings.PRODUCTION:
allowed_origins = ["http://localhost:3000", "http://localhost:5001", "https://stg.samliu.io.vn"]
allowed_origins = ["http://localhost:5001", "https://stg.samliu.io.vn"]
app.add_middleware(
CORSMiddleware,