This commit is contained in:
xuyue committed 2025-06-14 19:00:37 +08:00
1 parent d851ad0632
commit 077b224a2a
2 files changed
+14 -2

No files matched your search

+7 -1
View File
@@ -19,7 +19,13 @@ REDIS_CONF = {
DEBUG = True
ALLOWED_HOSTS = ["*"]
ALLOWED_HOSTS = [
"localhost",
"127.0.0.1",
"10.13.114.114",
"150.158.29.156",
"ojtest.xuyue.cc",
]
CSRF_TRUSTED_ORIGINS = ["http://localhost:5173", "https://ojtest.xuyue.cc"]
+7 -1
View File
@@ -18,7 +18,13 @@ REDIS_CONF = {
DEBUG = False
ALLOWED_HOSTS = ["*"]
ALLOWED_HOSTS = [
"localhost",
"127.0.0.1",
"10.13.114.114",
"150.158.29.156",
"oj.xuyue.cc",
]
CSRF_TRUSTED_ORIGINS = [
"https://oj.xuyue.cc",