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 bc631e6 commit 3a79663Copy full SHA for 3a79663
coderd/httpmw/csp.go
@@ -43,6 +43,8 @@ const (
43
// CSPHeaders returns a middleware that sets the Content-Security-Policy header
44
// for coderd. It takes a function that allows adding supported external websocket
45
// hosts. This is primarily to support the terminal connecting to a workspace proxy.
46
+//
47
+//nolint:revive
48
func CSPHeaders(telemetry bool, websocketHosts func() []string) func(next http.Handler) http.Handler {
49
return func(next http.Handler) http.Handler {
50
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
0 commit comments