Skip to main content
Participant
August 24, 2022
Besvarat

Error using PDF Embed API on localhost

  • August 24, 2022
  • 29 svar
  • 14579 visningar

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

Det här ämnet har stängts för svar.
Bästa svar av Switch5EBE

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


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

29 svar

Nibha24114765u2cs
Participating Frequently
May 1, 2023

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

Is 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.

 

Nibha24114765u2cs
Participating Frequently
May 1, 2023

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. 


Raymond Camden
Community Manager
Community Manager
August 25, 2022

Could you share your code?

Switch5EBESkribent
Participant
August 29, 2022
Screenshot_from_2022-08-29_10-58-48.png
Raymond Camden
Community Manager
Community Manager
August 29, 2022

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