Skip to content

Commit

Permalink
fix: update CSP to allow badges to be loaded from shields.io
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 17, 2020
1 parent 22b8c1a commit a87e527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def self.default_configuration
config.content_security_policy = {
script_src: "'self' 'unsafe-inline'",
style_src: "'self' 'unsafe-inline'",
img_src: "'self' data:",
img_src: "'self' data: #{URI(config.shields_io_base_url).host}",
font_src: "'self' data:",
base_uri: "'self'",
frame_src: "'self'",
Expand Down

0 comments on commit a87e527

Please sign in to comment.