Skip to main content
Participant
February 2, 2023
Question

error message: domain is not authorized

  • February 2, 2023
  • 1 reply
  • 307 views

I'm getting this error message. Is it because the URL on the site (caringacross.org) isn't the exact same as www.caringacross.org? My "allowed" domain is: www.caringacross.org

 

here's the page: https://caringacross.org/california-care-kit-copy/

 

here's the code

<!--Get the samples from https://www.adobe.com/go/pdfembedapi_samples-->

<!DOCTYPE html>

<html>

<head>

 <title>Adobe Acrobat Services PDF Embed API Sample</title>

 <meta charset="utf-8"/>

 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>

 <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1"/>

</head>

<body style="margin: 0px">

 <div id="adobe-dc-view"></div>

 <script src="https://documentservices.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: "9d3486109b12431b8078be0087632f4d", divId: "adobe-dc-view"});

        adobeDCView.previewFile(

       {

          content:   {location: {url: "https://caringacross.org/wp-content/uploads/2023/02/CAG-CA-Resource_v4.pdf"}},

          metaData: {fileName: "CaliforniaCarekit.pdf"}

       });

    });

 </script>

</body>

</html>



This topic has been closed for replies.

1 reply

Participant
February 2, 2023

This is the exact error message I'm getting: This application domain (https://caringacross.org) is not authorized to use the provided PDF Embed API Client ID.