Skip to main content
Participant
July 22, 2024
Answered

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

  • July 22, 2024
  • 3 replies
  • 1659 views

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

    Correct answer Vamsi27565173qzct

    Seems working now. Check it.

    3 replies

    Participant
    May 14, 2025

    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>
    Participant
    June 4, 2025

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

    Participant
    January 20, 2025

    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?


    Participant
    January 20, 2025

    {
    "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
    }
    ]
    }

    Participant
    January 20, 2025

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

     

    Vamsi27565173qzctCorrect answer
    Participant
    July 22, 2024

    Seems working now. Check it.

    Participant
    October 8, 2024

    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?

    Raymond Camden
    Community Manager
    Community Manager
    October 8, 2024

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