summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/base.html
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-08-18 15:32:52 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-19 18:00:12 +0100
commitbaed115081f888e027f92f37e12dc2dd2b874bf0 (patch)
treec248db88652dd8cb710207859682901f9ac937ec /lib/toaster/toastergui/templates/base.html
parente4ec622d9dc5f882049f5e8027331ec1e17681de (diff)
downloadbitbake-baed115081f888e027f92f37e12dc2dd2b874bf0.tar.gz
toastergui: Call csrf function in all pages to ensure cookie is sent
Not all pages call the csrf token template function so django does not bother to send the cookike, this meant that all subsequent ajax calls fail. So add this to the base template. [YOCTO #8175] Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastergui/templates/base.html')
-rw-r--r--lib/toaster/toastergui/templates/base.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/templates/base.html b/lib/toaster/toastergui/templates/base.html
index d75bf16bf..f18710026 100644
--- a/lib/toaster/toastergui/templates/base.html
+++ b/lib/toaster/toastergui/templates/base.html
@@ -69,6 +69,7 @@
<body style="height: 100%">
+ {% csrf_token %}
<div id="loading-notification" class="alert lead text-center" style="display:none">
Loading <i class="fa-pulse icon-spinner"></i>
</div>