This commit is contained in:
parent
f4d7cd8f67
commit
0c4a2bcf6d
8
main.py
8
main.py
|
@ -230,7 +230,13 @@ middleware = [
|
||||||
# CORS должен быть перед другими middleware для корректной обработки preflight-запросов
|
# CORS должен быть перед другими middleware для корректной обработки preflight-запросов
|
||||||
Middleware(
|
Middleware(
|
||||||
CORSMiddleware,
|
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_methods=["GET", "POST", "OPTIONS"], # Явно указываем OPTIONS
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user