From e9940ca597c3207929aa891a71464c4429697a7d Mon Sep 17 00:00:00 2001 From: liangliangyy Date: Wed, 23 Mar 2022 14:32:51 +0800 Subject: [PATCH] =?UTF-8?q?django=204.0=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- djangoblog/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangoblog/settings.py b/djangoblog/settings.py index 1ac8448..c0cccd7 100644 --- a/djangoblog/settings.py +++ b/djangoblog/settings.py @@ -36,7 +36,7 @@ TESTING = len(sys.argv) > 1 and sys.argv[1] == 'test' # ALLOWED_HOSTS = [] ALLOWED_HOSTS = ['*', '127.0.0.1', 'example.com'] # Application definition - +CSRF_TRUSTED_ORIGINS = ['http://example.com'] INSTALLED_APPS = [ # 'django.contrib.admin',