Skip to main content
Participant
January 31, 2023
Question

API Key not working for subdomain

  • January 31, 2023
  • 2 replies
  • 532 views

So I've got an API Key for our application domain [ex: domain.edu], and it says in the account that “Your Client ID (API Key) is restricted to this domain, plus any subdomain.” We also have a staging environment [staging.domain.edu], but when trying to use the API key in staging I get the error "This application domain (https://www.staging.domain.edu) is not authorized to use the provided PDF Embed API Client ID." Can anyone help me understand why it isn't actually working in staging?

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Legend
January 31, 2023

Looks, though, as if you have a sub-sub-domain (staging.domain.edu is a sub-domain but www.staging.domain.edu is a sub-sub-domain). I don't know if that is the issue, but it seems a possibility.

Participant
January 31, 2023

At the bottom of this (https://community.adobe.com/t5/acrobat-services-api-discussions/using-pdf-embed-api-on-multiple-domains/td-p/13381359) conversation, an employee says "Also, if your dev/staging/production are all something.foo.com (dev.foo.com, staging.foo.com, www.foo.com), you can just make a key for foo.com." But this is exactly what isn't working for me, unless I'm missing something.