adiciona as fontes do csrf

This commit is contained in:
2025-06-18 11:32:19 -04:00
parent 6dbbf47dfd
commit 727f1f1dde

View File

@ -209,6 +209,11 @@ FIXTURE_DIRS = (str(APPS_DIR / "fixtures"),)
SESSION_COOKIE_HTTPONLY = True
# https://docs.djangoproject.com/en/dev/ref/settings/#csrf-cookie-httponly
CSRF_COOKIE_HTTPONLY = True
CSRF_TRUSTED_ORIGINS = [
'http://localhost',
'http://192.168.235.234',
]
# https://docs.djangoproject.com/en/dev/ref/settings/#x-frame-options
X_FRAME_OPTIONS = "DENY"