0
Including script https://documentcloud.adobe.com/view-sdk/main.js with content security policy
New Here
,
/t5/acrobat-services-api-discussions/including-script-https-documentcloud-adobe-com-view-sdk-main-js-with-content-security-policy/td-p/12069670
May 26, 2021
May 26, 2021
Copy link to clipboard
Copied
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'?
TOPICS
PDF Embed API
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
LATEST
/t5/acrobat-services-api-discussions/including-script-https-documentcloud-adobe-com-view-sdk-main-js-with-content-security-policy/m-p/12069927#M1882
May 26, 2021
May 26, 2021
Copy link to clipboard
Copied
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

