disable http csrf cookie param so it can be sent via ajax

This commit is contained in:
Oly 2017-03-20 08:54:36 +00:00
parent 4afc2c2127
commit 8ec4cea078
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ SESSION_COOKIE_SECURE = True
SESSION_COOKIE_HTTPONLY = True
#SECURE_SSL_REDIRECT = env.bool('DJANGO_SECURE_SSL_REDIRECT', default=True)
CSRF_COOKIE_SECURE = True
CSRF_COOKIE_HTTPONLY = True
#disabledd so csrf works with ajax
CSRF_COOKIE_HTTPONLY = False
X_FRAME_OPTIONS = 'DENY'
# SITE CONFIGURATION