allow-all

This commit is contained in:
Untone 2025-06-27 15:42:16 +03:00
parent b1775f4814
commit 7c11c9875f

View File

@ -232,6 +232,7 @@ middleware = [
CORSMiddleware,
allow_origins=[
"https://localhost:3000",
"http://localhost:3000",
"https://testing.discours.io",
"https://testing3.discours.io",
"https://coretest.discours.io",
@ -261,7 +262,7 @@ if DEVMODE:
# Для DEV режима регистрируем дополнительный CORS middleware только для localhost
app.add_middleware(
CORSMiddleware,
allow_origins=["https://localhost:3000"],
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],