How to overcome the restriction of cross origin imposed on iframes of PDFTron?

Product: PDFTron web viewer

Product Version: 7.2.0

Please give a brief summary of your issue: Overcome restriction of cross origin of iframes

Please describe your issue and provide steps to reproduce it:
On having x-frame options : deny ; restricts the iframes from pdftron getting loaded. Have gone through the documentation on over coming this issue here : PDFTron, but found the details are insufficient. This being the Major and common blocker need help on this.
Thanks in Advance.

Please provide a link to a minimal sample where the issue is reproducible:

Hi @nandita.rao88,

You should have control of the server headers that are sent when loading WebViewer’s iframe, so all you should be doing is not set the X-frame-options: Deny headers and it should work.

You can read more about these headers here:

Best Regards,

Armando Bollain
Software Developer
PDFTron Systems, Inc.