From ec039719de63e864d4e088be9e7da75192adc87a Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Tue, 31 Mar 2015 14:52:11 +0000 Subject: [PATCH] prevent caching of ajax responses in the control panel GET requests might be cached. Definitely happens on Internet Explorer. Makes it look like the user is getting unauthorized access. See https://discourse.mailinabox.email/t/fresh-install-can-login-to-webmail-but-not-admin/394/4. --- management/templates/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/management/templates/index.html b/management/templates/index.html index 2efa6250..0a44e379 100644 --- a/management/templates/index.html +++ b/management/templates/index.html @@ -329,6 +329,7 @@ function api(url, method, data, callback, callback_error) { ajax({ url: "/admin" + url, method: method, + cache: false, data: data, beforeSend: function(xhr) { // We don't store user credentials in a cookie to avoid the hassle of CSRF