fix
This commit is contained in:
@@ -24,9 +24,17 @@ ALLOWED_HOSTS = [
|
||||
"127.0.0.1",
|
||||
"10.13.114.114",
|
||||
"150.158.29.156",
|
||||
"oj.xuyue.cc",
|
||||
"ojtest.xuyue.cc",
|
||||
]
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = ["http://localhost:5173", "https://ojtest.xuyue.cc"]
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
"https://oj.xuyue.cc",
|
||||
"https://ojtest.xuyue.cc",
|
||||
"http://10.13.114.114:81",
|
||||
"http://150.158.29.156:8881",
|
||||
"http://localhost:5173",
|
||||
]
|
||||
|
||||
|
||||
DATA_DIR = f"{BASE_DIR}/data"
|
||||
|
||||
@@ -24,12 +24,15 @@ ALLOWED_HOSTS = [
|
||||
"10.13.114.114",
|
||||
"150.158.29.156",
|
||||
"oj.xuyue.cc",
|
||||
"ojtest.xuyue.cc",
|
||||
]
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
"https://oj.xuyue.cc",
|
||||
"https://oj.xuyue.cc",
|
||||
"https://ojtest.xuyue.cc",
|
||||
"http://10.13.114.114:81",
|
||||
"http://150.158.29.156:8881",
|
||||
"http://localhost:5173",
|
||||
]
|
||||
|
||||
DATA_DIR = "/data"
|
||||
|
||||
Reference in New Issue
Block a user