Nechceme řešit CSRF warningy (RFC)

Možná chceme – pokud by jich bylo moc, tak to začne být podezřelé a
nevím, jestli to zvládne chytit django.security.suspicious_behaviour
(nebo jak se jmenuje)
This commit is contained in:
Pavel "LEdoian" Turinsky 2022-10-12 17:21:42 +02:00
parent a01e58dc68
commit 81a8081c8e

View file

@ -61,6 +61,7 @@ CSRF_COOKIE_SECURE = True
LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins']
LOGGING['loggers']['django']['handlers'] = ['console', 'mail_admins']
LOGGING['loggers']['django.security.csrf']['level'] = 'ERROR'
LOGGING['handlers']['registration_logfile']['filename'] = '/home/mam-web/logs/prod/registration.log'
LOGGING['handlers']['registration_error_log']['filename'] = '/home/mam-web/logs/prod/registration_errors.log'