allow-vercel
All checks were successful
Deploy on push / deploy (push) Successful in 6s

This commit is contained in:
Untone 2025-06-27 15:27:28 +03:00
parent f4d7cd8f67
commit 0c4a2bcf6d

View File

@ -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,