allow-all
This commit is contained in:
parent
b1775f4814
commit
7c11c9875f
3
main.py
3
main.py
|
@ -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=["*"],
|
||||
|
|
Loading…
Reference in New Issue
Block a user