Browse Source

Добавлены первоисточник (origin) для csrf #27

pull/35/head
Artur Galyamov 2 years ago
parent
commit
88563f1cb8
  1. 4
      crossposting_backend/private/settings.example.py

4
crossposting_backend/private/settings.example.py

@ -7,7 +7,9 @@ DEBUG = False
SECRET_KEY = 'django-insecure-aaaa'
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/')

Loading…
Cancel
Save