fix: Добавлена CSRF_TRUSTED_ORIGINS для правильной верификации CSRF при работе с формами (и админки)

This commit is contained in:
erjemin committed 2026-02-21 02:23:09 +03:00
1 parent 915c286e81
commit 5a80cf6406
2 files changed
+7

No files matched your search

+2
View File
@@ -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/')