Skip to main content
Participant
Nov 29, 2022 4:29 PM UTC
Question

Using PDF Embed API on multiple domains

Hello! I have a PDF brochure that I want to share with our travel partners to embed on their website. It would be distributed on 100+ unique domains (abc.com, xyz.com, etc). From what I can tell, the only way to do this is laborious: I'd need to create an individual project for each domain and then provide a unique custom embed code for that domain.

 

Am I missing something? Is there any way I can use one single embed code for all websites? Or open the embed up so it's not locked to a specific domain? Seems so limiting....

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

6 replies

Raymond Camden
Community Manager
Community Manager
Dec 14, 2022 3:21 PM UTC

Well, typically people don't have to push the code to 100+ unique domains. That being said, if you want to host the Embed yourself, and use an iFrame on those other sites, that could work. 

Translate
Participant
Jan 12, 2023 2:37 PM UTC

should allow at least 2 different domains. 1 for staging and 1 for a production site. if the staging/dev site is on another domain you have to use 2 different keys.

Translate
Raymond Camden
Community Manager
Community Manager
Jan 12, 2023 3:07 PM UTC

You can always stores keys in environment variables. 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.

Translate
onesipAuthor
Participant
Dec 14, 2022 3:32 AM UTC

Anyone have any ideas? Thank you 😊

Translate