CSRF设置
This commit is contained in:
parent
6a02d9928c
commit
a8f13178cd
1 changed files with 3 additions and 4 deletions
|
@ -28,10 +28,9 @@ SECRET_KEY = os.environ["SECRET_KEY"]
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
||||||
ALLOWED_HOSTS = [
|
ALLOWED_HOSTS = ["127.0.0.1"]
|
||||||
"127.0.0.1",
|
|
||||||
"mower.zhaozuohong.vip",
|
CSRF_TRUSTED_ORIGINS = ["https://mower.zhaozuohong.vip"]
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
Loading…
Reference in a new issue