Title: Security Error after upgrading to plugin v.3.0.2
Last modified: February 10, 2026

---

# Security Error after upgrading to plugin v.3.0.2

 *  Resolved [davefischoff](https://wordpress.org/support/users/davefischoff/)
 * (@davefischoff)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/security-error-after-upgrading-to-plugin-v-3-0-2/)
 * Hello,
 * I’ve gone through [all of the steps listed here](https://wordpress.org/support/topic/%e2%9a%a0%ef%b8%8f-pdfjs-viewer-not-loading-after-update/)
   after upgrading the plugin, but I’m still getting a “**Security Error:** PDF 
   files must be hosted on the same domain as this site” error on any page that 
   features a PDF, [like this one](https://wp-update-aclu-wp.pantheonsite.io/documents/2016-10-03-affidavit-publication-al-capitol-times-filed-accpdf)
   in a testing environment. For reference, the previous version of the plugin we
   had installed was 2.2.3.
 * For reference, you can see the same PDF loading [on the live site correctly here](https://www.aclu.org/documents/2016-10-03-affidavit-publication-al-capitol-times-filed-accpdf).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsecurity-error-after-upgrading-to-plugin-v-3-0-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [davefischoff](https://wordpress.org/support/users/davefischoff/)
 * (@davefischoff)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/security-error-after-upgrading-to-plugin-v-3-0-2/#post-18820058)
 * This issue stemmed from some missing custom code, not related to the plugin itself.
   Closing this issue!

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsecurity-error-after-upgrading-to-plugin-v-3-0-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/pdfjs-viewer-shortcode/assets/icon-256x256.png?rev=2301161)
 * [PDF.js Viewer](https://wordpress.org/plugins/pdfjs-viewer-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [davefischoff](https://wordpress.org/support/users/davefischoff/)
 * Last activity: [2 months, 2 weeks ago](https://wordpress.org/support/topic/security-error-after-upgrading-to-plugin-v-3-0-2/#post-18820058)
 * Status: resolved