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
Currently, to set cookies on a response you have to use the safehttp.Header.SetCookie method which takes a http.Cookie. All other ways to modify header values block the modification of the Set-Cookie header.
I suggest that we remove the safehttp.Header.SetCookie method, implement a safehttp.Cookie type with safe defaults and add a SetCookie method to safehttp.ResponseWriter.
The text was updated successfully, but these errors were encountered:
Currently, to set cookies on a response you have to use the
safehttp.Header.SetCookie
method which takes ahttp.Cookie
. All other ways to modify header values block the modification of theSet-Cookie
header.I suggest that we remove the
safehttp.Header.SetCookie
method, implement asafehttp.Cookie
type with safe defaults and add aSetCookie
method tosafehttp.ResponseWriter
.The text was updated successfully, but these errors were encountered: