Skip to main content
Participant
November 29, 2022
Question

Using PDF Embed API on multiple domains

  • November 29, 2022
  • 2 replies
  • 1609 views

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 has been closed for replies.

2 replies

Raymond Camden
Community Manager
Community Manager
December 14, 2022

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. 

Participant
January 12, 2023

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.

Raymond Camden
Community Manager
Community Manager
January 12, 2023

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.

onesipAuthor
Participant
December 14, 2022

Anyone have any ideas? Thank you 😊