Skip to main content
Participant
May 26, 2021
Question

Including script https://documentcloud.adobe.com/view-sdk/main.js with content security policy

  • May 26, 2021
  • 1 reply
  • 491 views
Trying to include the Adobe Viewer with
<script type="text/javascript">
   document.addEventListener("adobe_dc_view_sdk.ready", function(){
and activating the content security policy with the Apache configuration
Header always set Content-Security-Policy "script-src 'self' documentcloud.adobe.com"
without 'unsafe-inline' results in the following error message in Safari:
"Refused to execute a script because its hash, its nonce, or 'unsafe-inline' does not appear in the script-src directive of the Content Security Policy."
How can I get the script running without using 'unsafe-inline'?
This topic has been closed for replies.

1 reply

Participant
May 27, 2021
F5F3AF2C-7951-4FC6-9398-EC4867044F4D.png