We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3916b2 commit d9d80c9Copy full SHA for d9d80c9
1 file changed
internal/middleware/security.go
@@ -22,7 +22,7 @@ func SecurityHeaders(next http.Handler) http.Handler {
22
w.Header().Set("X-DNS-Prefetch-Control", "off")
23
w.Header().Set("Permissions-Policy", "camera=(), microphone=(), geolocation=()")
24
w.Header().Set("Referrer-Policy", "strict-origin-when-cross-origin")
25
- w.Header().Set("Content-Security-Policy", "default-src 'self'; script-src 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net https://unpkg.com; style-src 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' https://img.zero-host.org data:; font-src 'self' https://fonts.gstatic.com; connect-src 'self' https://cap.zero-host.org; frame-src blob:; worker-src blob:; base-uri 'self'; form-action 'self'")
+ w.Header().Set("Content-Security-Policy", "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net https://unpkg.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' https://img.zero-host.org data:; font-src 'self' https://fonts.gstatic.com; connect-src 'self' https://cap.zero-host.org https://cdn.jsdelivr.net; frame-src 'self' blob:; worker-src 'self' blob:; base-uri 'self'")
26
next.ServeHTTP(w, r)
27
})
28
}
0 commit comments