From 0c4a2bcf6dd6307d15b66626f5a622f74073445e Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 27 Jun 2025 15:27:28 +0300 Subject: [PATCH] allow-vercel --- main.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 3e01a5d8..a77ad080 100644 --- a/main.py +++ b/main.py @@ -230,7 +230,13 @@ middleware = [ # CORS должен быть перед другими middleware для корректной обработки preflight-запросов Middleware( CORSMiddleware, - allow_origins=["https://localhost:3000", "https://testing.discours.io", "https://testing3.discours.io"], + allow_origins=[ + "https://localhost:3000", + "https://testing.discours.io", + "https://testing3.discours.io", + "https://coretest.discours.io", + "https://*.vercel.app", + ], allow_methods=["GET", "POST", "OPTIONS"], # Явно указываем OPTIONS allow_headers=["*"], allow_credentials=True,