Skip to content

Commit

Permalink
fix: allow CSP inline styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiresviana committed May 5, 2022
1 parent b14b911 commit 5da9d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewHandler(
r := mux.NewRouter()
r.Use(func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Security-Policy", `default-src 'self'`)
w.Header().Set("Content-Security-Policy", `default-src 'self'; style-src 'unsafe-inline';`)
next.ServeHTTP(w, r)
})
})
Expand Down

0 comments on commit 5da9d74

Please sign in to comment.