diff options
-rw-r--r-- | service/pixelated/resources/root_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/resources/root_resource.py b/service/pixelated/resources/root_resource.py index c9808a03..6886dda6 100644 --- a/service/pixelated/resources/root_resource.py +++ b/service/pixelated/resources/root_resource.py @@ -70,7 +70,7 @@ class RootResource(BaseResource): ajax_request = (request.getHeader('x-requested-with') == 'XMLHttpRequest') if ajax_request: - xsrf_header = request.getHeader('x-xsrf-token') + xsrf_header = xsrf_token or request.getHeader('x-xsrf-token') return xsrf_header and xsrf_header == xsrf_token get_request = (request.method == 'GET') |