fix csrf
This commit is contained in:
@@ -21,4 +21,6 @@ DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = ["http://localhost:5173", "https://ojtest.xuyue.cc"]
|
||||
|
||||
DATA_DIR = f"{BASE_DIR}/data"
|
||||
|
||||
@@ -20,4 +20,6 @@ DEBUG = False
|
||||
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = ["https://oj.xuyue.cc"]
|
||||
|
||||
DATA_DIR = "/data"
|
||||
|
||||
Reference in New Issue
Block a user