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!
DEBUG = False
ALLOWED_HOSTS = [
"127.0.0.1",
"mower.zhaozuohong.vip",
]
ALLOWED_HOSTS = ["127.0.0.1"]
CSRF_TRUSTED_ORIGINS = ["https://mower.zhaozuohong.vip"]
# Application definition