Merge "Implement CSRF_COOKIE_HTTPONLY option support"

This commit is contained in:
Zuul 2019-03-12 17:22:01 +00:00 committed by Gerrit Code Review
commit d58539fa49
1 changed files with 2 additions and 1 deletions

View File

@ -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;