• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
4

Localhost PDF Embed API is not working

Community Beginner ,
Jul 29, 2020 Jul 29, 2020

Copy link to clipboard

Copied

Hi,

I am trying to use PDF Embed API in my localhost environment,
I registered the domain (local) but is not working.
See the attachments

TOPICS
How to , PDF Embed API

Views

4.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2020 Jul 30, 2020

Copy link to clipboard

Copied

I am facing the same difficulty.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 31, 2020 Jul 31, 2020

Copy link to clipboard

Copied

Thanks for using View SDK, sorry to hear that you are not able to get it to work and appreciate you sharing addional details about the issue. Usually this error occurs when we use invalid/incorrect client id or using correct client id in wrong domain etc. We need more details to debug further, request you to check your console network logs and confirm if the viewlicense call is failing like below.Screenshot 2020-07-31 at 6.21.20 PM.png    

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 03, 2020 Aug 03, 2020

Copy link to clipboard

Copied

I resolve it.

It was a problem with my web security trousted sources.

Thank you

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 21, 2022 Nov 21, 2022

Copy link to clipboard

Copied

@LeoDecko  If you are resolved this problem kindly help me out. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 24, 2020 Sep 24, 2020

Copy link to clipboard

Copied

I'm also having this issue. I can't add localhost to the allowed domains list for the API key and I get a 401 Unauthorized error when trying to preview locally. I know I don't have an issue with the incorrect client ID since I only have the one. Seems like a lot of people are having this localhost issue and it's a major blocker for development.

 

Screen Shot 2020-09-24 at 12.28.58 PM.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 02, 2020 Oct 02, 2020

Copy link to clipboard

Copied

I had the same problem

Try using Firfox browser because I was working with google chrome but Firefox show you more info.

I had to add to my Content-Security-Policy this scripts:

Scripts:

https://documentcloud.adobe.com/view-sdk/main.js
https://documentcloud.adobe.com/view-sdk/2.10.3_1.10.0-1e3411b/ViewSDKInterface.js

 

Connect sources: 

https://viewlicense.adobe.io/

 

That was my last wall to run this library.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 02, 2020 Oct 02, 2020

Copy link to clipboard

Copied

To do this in the simplest way, you must disable the Content Security Policy in your web application.
And if it works, you need to add the scripts to each part as said before.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 01, 2023 May 01, 2023

Copy link to clipboard

Copied

I have created the "localhost" key. and it worked with https://localhost But not working for app://localhost.

Are both URLs different? If yes then how to create a key for "app://localhost"?

I have been facing this issue since 25 Apr 2023 before this it was working for both https://localhost and app://localhost.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 02, 2023 May 02, 2023

Copy link to clipboard

Copied

LATEST

I have an iOS mobile app developed with Cordova, using Cordova-ios 6.2.0. In this version, the default URL scheme is app:// and a hostname can be configured in the config.xml file. So the requests from the mobile app to the backend all originate from the app://localhost.
And I have created the API key for "localhost", Which was not working. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources