Skip to main content
Known Participant
September 2, 2020
Answered

Embed API: Is the URL passed visible anywhere in the browser

  • September 2, 2020
  • 1 reply
  • 989 views

After passing the url to the Preview method I found that in the resulting iframe I could not see the URL? I wish to confirm whether this is true. It suits my use-case where even though the PDF is a public resource I would not like it to be available on display. Hence. Thanks

This topic has been closed for replies.
Correct answer Joel Geraci

If you pass the PDF as a URL, it will be visible in the page source even though it won't be apparent in the iframe. If you need to obfuscate the location of the PDF. Pass the content as a Promise and leverage some middleware to get the PDF and return just the bytes to your page.

1 reply

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
September 2, 2020

If you pass the PDF as a URL, it will be visible in the page source even though it won't be apparent in the iframe. If you need to obfuscate the location of the PDF. Pass the content as a Promise and leverage some middleware to get the PDF and return just the bytes to your page.

R.M.RAuthor
Known Participant
September 3, 2020
Thanks Joel. will do that

~R