Make theme cookie samesite lax
This commit is contained in:
parent
b075607bac
commit
bf97829814
1 changed files with 4 additions and 3 deletions
|
|
@ -28,6 +28,7 @@ func (a *application) handleThemeChangeRequest(w http.ResponseWriter, r *http.Re
|
||||||
Name: "theme",
|
Name: "theme",
|
||||||
Value: themeKey,
|
Value: themeKey,
|
||||||
Path: a.Config.Server.BaseURL + "/",
|
Path: a.Config.Server.BaseURL + "/",
|
||||||
|
SameSite: http.SameSiteLaxMode,
|
||||||
})
|
})
|
||||||
|
|
||||||
w.Header().Set("Content-Type", "text/css")
|
w.Header().Set("Content-Type", "text/css")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue