From a64d3423868b100053904cf4c4fe946e0344e978 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sun, 3 Sep 2017 21:39:25 +1000 Subject: [PATCH] fix apidocs --- controllers/middlewares/middlewares.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/middlewares/middlewares.go b/controllers/middlewares/middlewares.go index 283b39a1..d25c45e6 100644 --- a/controllers/middlewares/middlewares.go +++ b/controllers/middlewares/middlewares.go @@ -75,7 +75,7 @@ func ScopesRequired(scopes ...string) gin.HandlerFunc { // CSP set Content Security Policy http header func CSP() gin.HandlerFunc { return func(c *gin.Context) { - c.Header("Content-Security-Policy", "default-src 'self'; img-src * data:; media-src *; style-src 'self' maxcdn.bootstrapcdn.com 'unsafe-inline'; script-src 'self' 'unsafe-inline'; font-src 'self' maxcdn.bootstrapcdn.com") + c.Header("Content-Security-Policy", "default-src 'self'; img-src * data:; media-src *; style-src 'self' maxcdn.bootstrapcdn.com fonts.googleapis.com 'unsafe-inline'; script-src 'self' 'unsafe-inline'; font-src 'self' maxcdn.bootstrapcdn.com 'unsafe-eval") c.Next() } }