Copy link to clipboard
Copied
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....
Copy link to clipboard
Copied
Anyone have any ideas? Thank you 😊
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Is this still the case for the PDF Embed API? I keep getting a 400 response when trying to enter a list of domains:
"Invalid domain provided"
Copy link to clipboard
Copied
Correct. Enter one domain for one credential.