aboutsummaryrefslogtreecommitdiffstats
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.go b/server.go
index 5672a99..526db9f 100644
--- a/server.go
+++ b/server.go
@@ -302,7 +302,9 @@ func New(e *echo.Echo, options *Options) (*Server, error) {
e.Use(func(next echo.HandlerFunc) echo.HandlerFunc {
return func(ectx echo.Context) error {
- ectx.Response().Header().Set("Content-Security-Policy", "default-src 'self'")
+ // `style-src 'unsafe-inline'` is required for e-mails with
+ // embedded stylesheets
+ ectx.Response().Header().Set("Content-Security-Policy", "default-src 'self'; style-src 'self' 'unsafe-inline'")
return next(ectx)
}
})