From 5da9d74da62c69c431361bcaf0c07dc1da237ea8 Mon Sep 17 00:00:00 2001
From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com>
Date: Thu, 5 May 2022 15:38:39 +0000
Subject: [PATCH] fix: allow CSP inline styling

---
 http/http.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/http/http.go b/http/http.go
index 88acea75..0de633b8 100644
--- a/http/http.go
+++ b/http/http.go
@@ -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)
 		})
 	})