Skip to content

Commit e9940ca

Browse files
committed
django 4.0支持
1 parent 5e06089 commit e9940ca

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)