Skip to content

Commit

Permalink
change samesite settings for web
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed May 5, 2021
1 parent a85a373 commit 014c45e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/pkg/service/v0/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", "None; Secure")

static.ServeHTTP(w, r)
}
Expand Down

0 comments on commit 014c45e

Please sign in to comment.