File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -573,6 +573,7 @@ def callback(request):
573
573
574
574
CSRF_COOKIE_SECURE = env .bool ('CSRF_COOKIE_SECURE' , default = False )
575
575
CSRF_COOKIE_HTTPONLY = env .bool ('CSRF_COOKIE_HTTPONLY' , default = True )
576
+ CSRF_FAILURE_VIEW = 'retail.views.csrf_failure'
576
577
SESSION_COOKIE_SECURE = env .bool ('SESSION_COOKIE_SECURE' , default = False )
577
578
SECURE_BROWSER_XSS_FILTER = env .bool ('SECURE_BROWSER_XSS_FILTER' , default = True )
578
579
SECURE_CONTENT_TYPE_NOSNIFF = env .bool ('SECURE_CONTENT_TYPE_NOSNIFF' , default = True )
Original file line number Diff line number Diff line change @@ -1153,11 +1153,12 @@ def presskit(request):
1153
1153
def handler403 (request , exception = None ):
1154
1154
return error (request , 403 )
1155
1155
1156
+ def csrf_failure (request , reason = "" ):
1157
+ return error (request , 403 )
1156
1158
1157
1159
def handler404 (request , exception = None ):
1158
1160
return error (request , 404 )
1159
1161
1160
-
1161
1162
def handler500 (request , exception = None ):
1162
1163
return error (request , 500 )
1163
1164
You can’t perform that action at this time.
0 commit comments