Skip to main content
Participant
Jul 22, 2024 8:29 AM UTC
Answered

This application domain () is not authorized to use the provided PDF Embed API Client ID.

today it is happening to us that the PDFs load and display but after 5-10 seconds the banner appears:

 

This application domain (XXXXXX) is not authorized to use the provided PDF Embed API Client ID.

 

and it stops viewing, we have not changed anything and yesterday it did not happen... does it happen to anyone else? do you know if they have changed something in the viewer?

 

The code and the domain are correct and nothing has been touched in the programming.

 

thanks

    Vamsi27565173qzctCorrect answer
    Participant
    Jul 22, 2024 9:14 AM UTC

    Seems working now. Check it.

    9 replies

    Participant
    May 14, 2025 3:20 PM UTC

    yeah running into the same.
    "This application domain (https://matches.what.is.listed.in.with.the.API.com) is not authorized to use the provided PDF Embed API Client ID."
    Clicking on the "Learn more" button is probably the least helpful thing there could be for this particular issue.

    Copy from Adobe example page:
    <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: "<Path to your PDF/yourfilename.pdf">}},
             metaData: {fileName: "yourfilename.pdf"}
         });
       });
      </script>
     
    Copy from our pages giving the error:
     
     <script type="text/javascript">
        document.addEventListener("adobe_dc_view_sdk.ready", function(){
            var adobeDCView = new AdobeDC.View({clientId: "My-Correct-and-Verified-API-Key-Here", divId: "adobe-dc-view"});
            adobeDCView.previewFile({
    content:{location: {url: "/confirmed/location/of/needed.pdf"}},
    metaData:{fileName: "name-of-the-pdf"}}, {embedMode: "IN_LINE"});
        });
     </script>
    Translate
    Participant
    Jun 4, 2025 3:17 PM UTC

    Same issue over here!
    Copy code from documentation with my client id , and my domain name, after 5sec the following printscreen appears

    Translate
    Participant
    Jan 20, 2025 7:28 AM UTC

    Hi i am facing the same problem, 

    for some reason my clientID stopped working and was no longer visible in the console.
    so i created a new key, but i have to struggle to get the error away by clearing cookies and cache before it may or may not work. the problem is how do i explain this to all the website visitors. if i use php and js to clear cache and cookies it still does not show my pdf and on mobile it is even worse to change clientID. how do i fix this?


    Translate
    Participant
    Jan 20, 2025 8:01 AM UTC

    {
    "events": [
    {
    "clientID": "10ee3b6212ee4073a46a37cf6e53bfb4",
    "url": "https://virtualaupair.co.za/",
    "domain": "https://virtualaupair.co.za",
    "sessionID": "c3c1a03d-4ff4-4c48-8fd9-31776cbf858d",
    "viewer": "MODERN",
    "embedApiVersion": "3.2.10-ea8924cb",
    "fileInfo": {
    "size": 96605,
    "noOfPages": 2
    },
    "embedMode": "FULL_WINDOW",
    "performance": {
    "isLinearizationEnabled": false,
    "downloadTime": 3,
    "renderTime": 3088
    },
    "browserInfo": {
    "browser": "Chrome",
    "browserMajor": "131"
    },
    "osInfo": {
    "os": "Windows",
    "osVersion": "10"
    },
    "deviceType": "-",
    "generatedAt": 1737359995749
    }
    ]
    }

    Translate
    Participant
    Jan 20, 2025 8:02 AM UTC

    why is the clientID not allowed if the domain and clientID is correct?

     

    Translate
    Vamsi27565173qzctCorrect answer
    Participant
    Jul 22, 2024 9:14 AM UTC

    Seems working now. Check it.

    Translate
    Participant
    Oct 8, 2024 10:04 AM UTC

    We also face the same issue, we didn't change any code or client ID. What was the issue? 

     

    When will we have this problem?

    Translate
    Raymond Camden
    Community Manager
    Community Manager
    Oct 8, 2024 2:11 PM UTC

    iOS18? If so, we pushed a fix a few days ago, VERY recently. You may need to clear cache and try again.

    Translate