mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 09:57:37 +00:00
fix: improve interceptor handling (#3578)
* fix: improve interceptor handling * fix: improve interceptor handling Co-authored-by: Florian Forster <florian@caos.ch>
This commit is contained in:
@@ -136,4 +136,11 @@ func (c *CookieHandler) httpSet(w http.ResponseWriter, name, domain, value strin
|
||||
Secure: c.secureOnly,
|
||||
SameSite: c.sameSite,
|
||||
})
|
||||
varyValues := w.Header().Values("vary")
|
||||
for _, vary := range varyValues {
|
||||
if vary == "Cookie" {
|
||||
return
|
||||
}
|
||||
}
|
||||
w.Header().Add("vary", "Cookie")
|
||||
}
|
||||
|
Reference in New Issue
Block a user