Print violating Content Security Policy

Posted by: katie.koslosky on 20 January 2022, 2:51 am EST

  • Posted 20 January 2022, 2:51 am EST

    Our site has a fairly strict Content Security Policy (script-src ‘self’ ‘unsafe-eval’) , and it would seem that the Viewer’s print function contains and inline script that violates the policy.

    “Refused to execute inline event handler because it violates the following Content Security Policy directive”

    Adding ‘unsafe-inline’ to our CSP is the only way I have successfully gotten the print button to work in our application, but our organization considers that a security risk. Has anyone successfully gotten around this?

  • Posted 20 January 2022, 9:56 pm EST


    As a work-around, you can use the PDF Export with the “PrintOnly” setting is set to True for printing functionality

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels