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

Api Embed PDF Url allowed domain error

New Here ,
Apr 26, 2023 Apr 26, 2023

Hi All, 

I have been trying to set up a test API key for trying out the pdf embed api. 

When I use the address of the web server I get a domain invalid response.

The URL that I am using is worms2-cityoflethbridge.msappproxy.net\WOMGT 

what are my options, as it appears that the setting is looking to only work with a .domain extension?

TOPICS
How to , PDF Embed API , REST APIs
781
Translate
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
LEGEND ,
Apr 26, 2023 Apr 26, 2023

That is an invalid URL, but if you type it into a browser it is corrected, so it might seem OK.  Programmers can't reply on this autocorrection

To be correct it must have forward slash (not a backslash), and a protocol. For example

https://worms2-cityoflethbridge.msappproxy.net/WOMGT

 

Translate
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 ,
Apr 27, 2023 Apr 27, 2023

Thanks Test Screen name. 

When adding the URL that you indicated above "https://worms2-cityoflethbridge.msappproxy.net/WOMGT"also generates the same error: Domain is invalid. 

the only valid entry I can add is : worms2-cityoflethbridge.msappproxy.net

 

Does anyone know why?

 

Translate
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
LEGEND ,
Apr 27, 2023 Apr 27, 2023

What is it that you need to enter? A domain or a URL? These are entirely different things, and what you used in your first post was neither a domain nor a URL.  And what do you mean by "a .domain extension"?

Translate
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 ,
Apr 27, 2023 Apr 27, 2023

When generating an API Key for the PDF embed API a key needs to be generated against a specific domain. In my case, I am using an app proxy that is outside of my domain to access internal resources. So I have entered the entrance point of the application. Reading your question I may have misinterpreted the domain to be the url that is used as proxy. Humm

Translate
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
LEGEND ,
Apr 28, 2023 Apr 28, 2023
LATEST

Ok, for the embed API it is a domain that's needed, not a URL. The domain part of your original post is worms2-cityoflethbridge.msappproxy.net. But I think the domain name you need is the one shown in the address bar. (Unless that page calls in pages from other sites, which is a nightmare, because your service can only be licensed to one domain). To get the correct domain don't just look at the address bar, because browsers mangle it in  important ways fatal to your objective. Click in the address and copy/paste the full URL (http... and so on). Then trim it to have just the domain name (between // and the next /).

Translate
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