From ed6c656963ce0f25df569de51547352ac3675069 Mon Sep 17 00:00:00 2001 From: Artem Kashaev Date: Mon, 1 Dec 2025 16:18:36 +0500 Subject: [PATCH] fix: update CORS allowed origins for better security --- app/main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/main.py b/app/main.py index a1d084a..13c887b 100644 --- a/app/main.py +++ b/app/main.py @@ -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-методы