adiciona as fontes do csrf
This commit is contained in:
@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user