Hi, can you check that you have enabled the api key for the domain?
Can you try also in a blank post/page? I see you have another embedder installed, try to uninstall it, just to check if there’s some conflicts.
Can you also try to copy/pate this snippet in an HTML block?
<div id="adobe-dc-view"></div>
<script src="https://acrobatservices.adobe.com/view-sdk/viewer.js"></script>
<script type="text/javascript">
document.addEventListener("adobe_dc_view_sdk.ready", function(){
var adobeDCView = new AdobeDC.View({clientId: "<YOUR_CLIENT_ID>", divId: "adobe-dc-view"});
adobeDCView.previewFile({
content:{location: {url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf"}},
metaData:{fileName: "Bodea Brochure.pdf"}
}, {});
});
</script>
Can you please check if the problem is solved with latest update?
Thanks
Thread Starter
ngoclx
(@ngoclx)
Can you try to uninstall and reinstall again?
Thread Starter
ngoclx
(@ngoclx)
Hi there,
I tried it a couple of times but no luck. Still get the same error:
Access to fetch at ‘https://viewlicense.adobe.io/viewsdklicense/jwt’ from origin ‘https://new-shp.md-staging.site’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Thread Starter
ngoclx
(@ngoclx)
Finally! upgrading the plugin helped.
https://prnt.sc/qbehkSRxQitQ
Thanks a lot for your support.