~kota/kudoer

27d661e116319cbae5dea9b9a4c581d569243a80 — Dakota Walsh 2 months ago 3d9d882
Remove referrer completely
1 files changed, 1 insertions(+), 1 deletions(-)

M application/middleware.go
M application/middleware.go => application/middleware.go +1 -1
@@ 76,7 76,7 @@ func (app *application) secureHeaders(next http.Handler) http.Handler {
				nonce+"'; style-src 'nonce-"+
				nonce+"'; img-src 'self' https: data:",
		)
		w.Header().Set("Referrer-Policy", "strict-origin-when-cross-origin")
		w.Header().Set("Referrer-Policy", "no-referrer")
		w.Header().Set("X-Content-Type-Options", "nosniff")
		w.Header().Set("X-Frame-Options", "deny")
		w.Header().Set("X-XSS-Protection", "0")