Merge pull request #10941 from colinux/fix-crisp-help-csp

ETQ admin je peux voir les pages d'aides disponibles dans crisp
This commit is contained in:
Colin Darie 2024-10-15 14:38:38 +00:00 committed by GitHub
commit eda687e52c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,6 +40,7 @@ Rails.application.config.content_security_policy do |policy|
frame_whitelist << URI(MATOMO_IFRAME_URL).host if Rails.application.secrets.matomo[:enabled]
# allow pdf iframes in the PJ gallery
frame_whitelist << URI(DS_PROXY_URL).host if DS_PROXY_URL.present?
frame_whitelist << "*.crisp.help" if Rails.application.secrets.crisp[:enabled]
policy.frame_src(:self, *frame_whitelist)
# Everything else: allow us