allow-all
This commit is contained in:
parent
b1775f4814
commit
7c11c9875f
3
main.py
3
main.py
|
@ -232,6 +232,7 @@ middleware = [
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=[
|
allow_origins=[
|
||||||
"https://localhost:3000",
|
"https://localhost:3000",
|
||||||
|
"http://localhost:3000",
|
||||||
"https://testing.discours.io",
|
"https://testing.discours.io",
|
||||||
"https://testing3.discours.io",
|
"https://testing3.discours.io",
|
||||||
"https://coretest.discours.io",
|
"https://coretest.discours.io",
|
||||||
|
@ -261,7 +262,7 @@ if DEVMODE:
|
||||||
# Для DEV режима регистрируем дополнительный CORS middleware только для localhost
|
# Для DEV режима регистрируем дополнительный CORS middleware только для localhost
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["https://localhost:3000"],
|
allow_origins=["*"],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user