ImagingDataCommons / slim

Interoperable web-based slide microscopy viewer and annotation tool
https://imagingdatacommons.github.io/slim/
Apache License 2.0
111 stars 36 forks source link

Added conditional content-security-policy header #160

Open cgorman opened 11 months ago

cgorman commented 11 months ago

If any of the URLs start with https then we add the Content-Security-Policy : upgrade-insecure-requests header to DICOMwebClient requests. Addresses #159

cgorman commented 11 months ago

Let me know if there's a better way of doing this, thanks!

github-actions[bot] commented 11 months ago

Visit the preview URL for this PR (updated for commit c48584a):

https://idc-external-006--pr160-dev-cg-upgrade-insec-409byuig.web.app

(expires Thu, 27 Jul 2023 19:29:11 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 88aacecd98ba54d2f9c8d201a9444e43d1ad8307