mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-05 11:51:16 -06:00
change samesite settings for web
This commit is contained in:
5
changelog/unreleased/web-samesite.md
Normal file
5
changelog/unreleased/web-samesite.md
Normal file
@@ -0,0 +1,5 @@
|
||||
Enhancement: Set SameSite settings to Strict for Web
|
||||
|
||||
Changed SameSite settings to Strict for Web to prevent warnings in Firefox
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2019
|
||||
@@ -177,6 +177,7 @@ func (p Web) Static(ttl int) http.HandlerFunc {
|
||||
w.Header().Set("Cache-Control", "no-cache, no-store, max-age=0, must-revalidate, value")
|
||||
w.Header().Set("Expires", "Thu, 01 Jan 1970 00:00:00 GMT")
|
||||
w.Header().Set("Last-Modified", time.Now().UTC().Format(http.TimeFormat))
|
||||
w.Header().Set("SameSite", "Strict")
|
||||
|
||||
static.ServeHTTP(w, r)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user