added Cross-Origin-Opener-Policy:same-origin to the default security headers

This commit is contained in:
Gani Georgiev committed 2026-08-11 18:42:26 +03:00
1 parent 2262bb4cae
commit a4f1fa33d1
2 files changed
+4

No files matched your search

+1
View File
@@ -293,6 +293,7 @@ func securityHeaders() *hook.Handler[*core.RequestEvent] {
e.Response.Header().Set("X-XSS-Protection", "1; mode=block")
e.Response.Header().Set("X-Content-Type-Options", "nosniff")
e.Response.Header().Set("X-Frame-Options", "SAMEORIGIN")
e.Response.Header().Set("Cross-Origin-Opener-Policy", "same-origin")
// @todo consider a default HSTS?
// (see also https://webkit.org/blog/8146/protecting-against-hsts-abuse/)