Whenever I tap a link in my PDF to goto a different web page I get this Security Warning? How do I stop this? How do I trust every PDF document always? I don’t think its a Content Security Policy?
Hello it1,
WebViewer currently does not have an API to disable this, we have had this API requested previously and I will also add this to the request for our product team to review.
All the best,
Bojan
Hello @it1 ,
If you would like to disable the security popup when clicking on links on the PDF, this can now be done with the setOpenURIHandler API, found here: Apryse WebViewer Class: DocumentViewer
Using the following API, the code should look something like this:
instance.Core.documentViewer.setOpenURIHandler(null);
Let us know if that works for you!
Best Regards,
Jacob Romano Carlsen
Web Development Support Engineer
Apryse Software Inc.
1 Like