Добавлены первоисточник (origin) для csrf #27
This commit is contained in:
parent
d95bdf1c9e
commit
88563f1cb8
@ -7,7 +7,9 @@ DEBUG = False
|
|||||||
SECRET_KEY = 'django-insecure-aaaa'
|
SECRET_KEY = 'django-insecure-aaaa'
|
||||||
|
|
||||||
SALT = 'aaaaaaaa'
|
SALT = 'aaaaaaaa'
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = ['localhost']
|
||||||
|
|
||||||
|
CSRF_TRUSTED_ORIGINS = ['http://zakonvremeni.ru:8989',]
|
||||||
|
|
||||||
LOG_DIR = path.join(Path(__file__).resolve().parent.parent.parent, 'logs/')
|
LOG_DIR = path.join(Path(__file__).resolve().parent.parent.parent, 'logs/')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user