fix: update CORS allowed origins for better security

This commit is contained in:
Artem Kashaev 2025-12-01 16:18:36 +05:00
parent 5fcb574aca
commit ed6c656963
1 changed files with 6 additions and 6 deletions

View File

@ -38,12 +38,12 @@ def create_app() -> FastAPI:
application.add_middleware(
CORSMiddleware,
allow_origins=[
# "https://kitchen-crm.k1nq.tech",
# "http://192.168.31.51",
# "http://localhost:8000",
# "http://0.0.0.0:8000",
# "http://127.0.0.1:8000",
"*", # ! TODO: Убрать
"https://kitchen-crm.k1nq.tech",
"http://192.168.31.51",
"http://localhost:8000",
"http://0.0.0.0:8000",
"http://127.0.0.1:8000",
# "*",
],
allow_credentials=True,
allow_methods=["*"], # Разрешить все HTTP-методы