You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Varnish is stripping the cookie and therefore Plone redirects to the require_login page, causing the css to open without any contents in the theme editor ide.
Problem
The default implementation of the recipe creates a 'cookies for pass' section that strips session coookies etc for urls that end in js, css and kss
However,
req.url
includes the query string.The Plone theme editor opens css files using the following xhr request:
Varnish is stripping the cookie and therefore Plone redirects to the
require_login
page, causing the css to open without any contents in the theme editor ide.Possible solutions
req.url
variable prior to testing for js/css/kss - something like -set req.url = regsub(req.url, "\?.*$", "");
(courtesy of https://varnish-cache.org/lists/pipermail/varnish-misc/2011-April/020419.html)if (req.http.Cookie && req.http.Cookie ~ "{{rule['match']}} && req.http.X-Requested-With != "XMLHttpRequest"") {
The text was updated successfully, but these errors were encountered: