Skip to main content
kbsbeme
Participant
September 27, 2023
Question

Embed API loads PDF then disappears.

  • September 27, 2023
  • 1 reply
  • 685 views

LIVE PAGE:  http://kbshawauthor.com/Domino101.html

ALLOWED DOMAIN: localhost.  I've also used kbshawauthr.com.

ERRORS:

[Error] Origin http://kbshawauthor.com is not allowed by Access-Control-Allow-Origin. Status code: 403
[Error] Fetch API cannot load https://viewlicense.adobe.io/viewsdklicense/jwt due to access control checks.
[Error] Failed to load resource: Origin http://kbshawauthor.com is not allowed by Access-Control-Allow-Origin. Status code: 403 (jwt, line 0)

SCRIPT:

<script type="text/javascript">
document.addEventListener("adobe_dc_view_sdk.ready", function(){ 
var adobeDCView = new AdobeDC.View({clientId: "<ce243576f91c413e9ce001673ef2b515>", divId: "adobe-dc-view"});
adobeDCView.previewFile({
content:{location: {url: "Domino101.pdf"}},
metaData:{fileName: "Domino Lady Episode 101"}
}, {showAnnotationTools: false, showDownloadPDF: false, showPrintPDF: false});
});
</script>
    This topic has been closed for replies.

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    September 27, 2023

    In your code, you have this:

     

    "<ce243576f91c413e9ce001673ef2b515>"

     

    Remove the < and >

    kbsbeme
    kbsbemeAuthor
    Participant
    September 27, 2023

    Duh! I feel like an idiot. Thanks for that, but it still disappears after loading.

    Has this WARNING:

    The resource https://acrobatservices.adobe.com/dc-pdfverbs-web/3.0.2_4.347.0/translations-en-US-json.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.