Skip to content

Commit c98f6bc

Browse files
committed
config csrf origin
1 parent 31e8d43 commit c98f6bc

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)