diff options
Diffstat (limited to 'lib/gitlab/content_security_policy/directives.rb')
-rw-r--r-- | lib/gitlab/content_security_policy/directives.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/content_security_policy/directives.rb b/lib/gitlab/content_security_policy/directives.rb index 4ad420f9e2f..e293e5653c7 100644 --- a/lib/gitlab/content_security_policy/directives.rb +++ b/lib/gitlab/content_security_policy/directives.rb @@ -18,6 +18,10 @@ module Gitlab def self.script_src "'strict-dynamic' 'self' 'unsafe-inline' 'unsafe-eval' https://www.google.com/recaptcha/ https://www.recaptcha.net https://apis.google.com" end + + def self.style_src + "'self' 'unsafe-inline'" + end end end end |