- Find
beresp.http.Set-Cookie
and change it like the below
# Only allow cookies to be set if we're in admin area
if (beresp.http.Set-Cookie && bereq.url !~ "/wp-(login|admin)") {
unset beresp.http.Set-Cookie;
}
- The way forward cookie in varnish