Support » Plugin: PDF.js Viewer » Hosted Viewer Origins

  • Resolved jwcounts


    Our CDN and website are on 2 different domains (long story). On initial install, this plugin won’t display a PDF until I modify the HOSTED_VIEWER_ORIGINS constant in pdfjs > web > viewer.js.

    Is there a site variable or a function I could use to whitelist the domains without having to modify the javascript file?

    I mean, I know that long-term, I should migrate the CDN to serve from the same domain, but for now, I’d like to try to fix it in code. Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.