Merge "Implement CSRF_COOKIE_HTTPONLY option support"
This commit is contained in:
commit
d58539fa49
@ -112,7 +112,8 @@
|
||||
$route
|
||||
) {
|
||||
|
||||
$http.defaults.headers.post['X-CSRFToken'] = $cookies.csrftoken;
|
||||
$http.defaults.headers.post['X-CSRFToken'] = $cookies.csrftoken ||
|
||||
$('input[name="csrfmiddlewaretoken"]').val();
|
||||
|
||||
// expose the legacy utils module
|
||||
horizon.utils = hzUtils;
|
||||
|
Loading…
Reference in New Issue
Block a user