Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id EBFA7E00AB7; Mon, 17 Aug 2015 09:48:36 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.212.169 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1A0A2E0097F for ; Mon, 17 Aug 2015 09:48:32 -0700 (PDT) Received: by wicja10 with SMTP id ja10so86070010wic.1 for ; Mon, 17 Aug 2015 09:48:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rnS3ZY0elL/BEOhyqWMMWXQ5aYHFaKQbCjUMNE4on9M=; b=BTUrbUkAS89dg9L1k8s5oept+ZHbtuCErGJtCsv1CRFtnnWr0d+Z+/MQ42zBsmH6Ez q/6xeVRcrrgT8B94oiadKLrsqvF1ANep/mDKt1gRHvmEVHhkns7q2qSY2V4WmPDsn1f4 dOWBJpr+0QreHCbp6yOXXR8Wsrhtm8PAXVI66xLN5mxfMobYWN6oe/sRmKecVIBYixqM vUjtTR3CNPe+xpwNAvUlVxSc9dMv6xq84SFWnr2+EKsoxwloodd0G9F2ocw/QniR7Szl Hn6P+jbk1ksBdx2jUWy3ePSoITLuHMuxeYVusEShx3HDgeKfrn7N18YQ3/qASZCsFBvp 1xWg== X-Gm-Message-State: ALoCoQnQNdzoeKElpIEneoT057NiKcwz2NRsWn1UziIKY2t6Anjy7/LGPFBsBzZeHJ9hYoTJtHip X-Received: by 10.180.12.148 with SMTP id y20mr33757658wib.80.1439830112053; Mon, 17 Aug 2015 09:48:32 -0700 (PDT) Received: from dorado.Home ([90.200.212.221]) by smtp.gmail.com with ESMTPSA id z11sm17489987wij.9.2015.08.17.09.48.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Aug 2015 09:48:31 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Mon, 17 Aug 2015 17:48:24 +0100 Message-Id: <1439830104-7234-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 Subject: [review-request][PATCH] toastergui: Call csrf function in all pages to ensure cookie is sent X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2015 16:48:37 -0000 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 --- bitbake/lib/toaster/toastergui/templates/base.html | 1 + 1 file changed, 1 insertion(+) diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index d75bf16..f187100 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html @@ -69,6 +69,7 @@ + {% csrf_token %} -- 2.1.4