• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Error using PDF Embed API on localhost

Community Beginner ,
Aug 24, 2022 Aug 24, 2022

Copy link to clipboard

Copied

I created a new key but I'm getting 401 error. I'm allowing localhost but I receive:

TOPICS
PDF Embed API

Views

467

Likes

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

correct answers 1 Correct answer

Community Beginner , Aug 29, 2022 Aug 29, 2022

I created a new key and it worked, thanks for the support!

Likes

Translate

Translate
Adobe Employee ,
Aug 25, 2022 Aug 25, 2022

Copy link to clipboard

Copied

Could you share your code?

Likes

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 29, 2022 Aug 29, 2022

Copy link to clipboard

Copied

 

Likes

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 ,
Aug 29, 2022 Aug 29, 2022

Copy link to clipboard

Copied

I see you are using a template language. When your site is run, View Source, and confirm you see the right client ID there.

Likes

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 29, 2022 Aug 29, 2022

Copy link to clipboard

Copied

I created a new key and it worked, thanks for the support!

Likes

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 18, 2022 Nov 18, 2022

Copy link to clipboard

Copied

I'm having a similar issue with this trying to utilize ionic capacitor, so my domain on the app is capacitor://localhost . I have created a localhost key, but still getting the error "This application domain (capacitor://localhost) is not authorized to use the provided PDF Embed API Client ID" - Any suggestions on resolving this issue?

Likes

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 ,
Nov 18, 2022 Nov 18, 2022

Copy link to clipboard

Copied

If you used https://localhost, that is not the same as capacitor://localhost.

Likes

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 18, 2022 Nov 18, 2022

Copy link to clipboard

Copied

Thanks for the response - I am unable to add capacitor://localhost to the domain when creating a new client ID - receiving this error:

 

 

Likes

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 ,
Nov 18, 2022 Nov 18, 2022

Copy link to clipboard

Copied

Yep, not surprised, as it's not a valid domain. I don't think you will be able to use PDF Embed w/ Capicitor, or Cordova in general. 

Likes

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 18, 2022 Nov 18, 2022

Copy link to clipboard

Copied

Thanks for the response - so is there no wildcard or workaround for this i.e. no way for Adobe to allow adding the capacitor://localhost to an approved domain?

Likes

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 ,
Nov 18, 2022 Nov 18, 2022

Copy link to clipboard

Copied

Sorry, nope. 

Likes

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 23, 2022 Nov 23, 2022

Copy link to clipboard

Copied

it works for me, following these steps:

1. create a credential as "localhost" domain

2. generate the html or whatever you'r using

3. in VS CODE use the extension live server ( opens a port  available ) in my case :5500 or just open the port manually

4. in your browser, for me ( chrome ) it would look like these 127.0.0.1:5500/path/path/yourfile.html

 

5. change the url to localhost:5500/path/path/yourfile.html

127.0.0.1 is the same as localhost, and our domain for the API KEY is localhost so...

 

NOW IT WORKS!

 

note: if you use the port :8080 it should be work in your browser with localhost as URL, this is why 8080 is the web default port. 

Likes

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 27, 2022 Nov 27, 2022

Copy link to clipboard

Copied

I cannot create a credential for "localhost". I used the adobe developer console and got an error.

Could you explain in more detail how you created the credentials?

adobe-dc-error.png

 

Likes

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 ,
Nov 29, 2022 Nov 29, 2022

Copy link to clipboard

Copied

LATEST

I believe that may have been a temporary error - please try again.

Likes

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