Skip to content

Commit

Permalink
Add exception for element (#1080)
Browse files Browse the repository at this point in the history
* Remove nonces

* Add custom csp for mirador viewer

* Add additional connect-src and remove unsafe inline

* Add back unsafe inline for blacklight range limit

* rubocop

* Add exceptions for style

* Add exception
  • Loading branch information
K8Sewell authored Jan 15, 2025
1 parent 52e98f3 commit 0176982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
policy.script_src_elem :self, :unsafe_inline, 'siteimproveanalytics.com www.googletagmanager.com'
policy.style_src :self, :unsafe_inline
policy.style_src_attr :self, :unsafe_inline
policy.style_src_elem :self, "#{ENV['IIIF_IMAGE_BASE_URL']}/"
policy.style_src_elem :self, :unsafe_inline, "#{ENV['IIIF_IMAGE_BASE_URL']}/"
policy.connect_src :self, "banner.library.yale.edu www.google-analytics.com region1.google-analytics.com #{ENV['IIIF_IMAGE_BASE_URL']}/"

# Specify URI for violation reports
Expand Down

0 comments on commit 0176982

Please sign in to comment.