Skip to content

Commit 088fad3

Browse files
authored
Merge pull request #53 from moscowpython/fix/csrf_config
config csrf origin
2 parents 31e8d43 + c98f6bc commit 088fad3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

landing_page/landing_page/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
ALLOWED_HOSTS = ['*']
1010

11+
CSRF_TRUSTED_ORIGINS = ['https://learn.python.ru']
12+
1113
INSTALLED_APPS = [
1214
'mainpage.apps.MainpageConfig',
1315
'django.contrib.admin',

0 commit comments

Comments
 (0)