fix: Добавлена CSRF_TRUSTED_ORIGINS для правильной верификации CSRF при работе с формами (и админки)
This commit is contained in:
1 parent
915c286e81
commit
5a80cf6406
2 files changed
+7
No files matched your search
@@ -29,6 +29,8 @@ DEBUG = env('DEBUG')
|
||||
|
||||
ALLOWED_HOSTS = env.list('ALLOWED_HOSTS', default=['127.0.0.1', 'localhost'])
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = env.list('CSRF_TRUSTED_ORIGINS', default=['http://127.0.0.1', 'http://localhost'])
|
||||
|
||||
# Custom Admin URL from .env
|
||||
ADMIN_URL = env('ADMIN_URL', default='admin/')
|
||||
|
||||
|
||||
Reference in new issue
Block a user