Skip to content

Commit 202baef

Browse files
authored
Merge pull request #563 from liangliangyy/dev
django 4.0支持
2 parents 20b0164 + e9940ca commit 202baef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangoblog/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def env_to_bool(env, default):
3636
# ALLOWED_HOSTS = []
3737
ALLOWED_HOSTS = ['*', '127.0.0.1', 'example.com']
3838
# Application definition
39-
39+
CSRF_TRUSTED_ORIGINS = ['http://example.com']
4040

4141
INSTALLED_APPS = [
4242
# 'django.contrib.admin',

0 commit comments

Comments
 (0)