CSRF设置

This commit is contained in:
zhbaor 2023-12-13 05:07:19 +00:00
parent 6a02d9928c
commit a8f13178cd

View file

@ -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