X
Tap here to go to the mobile version of the site.

Support Forum

This thread was closed and archived. Please ask a new question if you need help.

Mozilla security error: Failed to load worker script pdf.js

  • No replies
  • 1 has this problem
  • 2 views
Posted

locking this thread as duplicate, please continue at https://support.mozilla.org/questions/1201614

I am trying to implement a flip book application using pdf-flipbook master. In Local localhost its working fine in both mozilla and chrome.But when I try to deploy in physical server I am getting this error in mozilla and pdf not loading. In chrome its working fine.

Mozilla security error: Failed to load worker script https://s3-xxxxxxxxxx/static/js/flip-book/build/pdf.worker.js';

localhost viewer.js code

PDFJS.imageResourcesPath = 'images/';

PDFJS.workerSrc = '/static/js/flip-book/build/pdf.worker.js';

PDFJS.cMapUrl = 'pdfjs/cmaps/';

PDFJS.cMapPacked = true;

S3 bucket viewer.js code

PDFJS.imageResourcesPath = 'images/';

PDFJS.workerSrc = 'https://s3-ap-xxxxxxx/static/js/flip-book/build/pdf.worker.js';

PDFJS.cMapUrl = 'pdfjs/cmaps/';

PDFJS.cMapPacked = true;

''locking this thread as duplicate, please continue at [https://support.mozilla.org/questions/1201614]'' I am trying to implement a flip book application using pdf-flipbook master. In Local localhost its working fine in both mozilla and chrome.But when I try to deploy in physical server I am getting this error in mozilla and pdf not loading. In chrome its working fine. Mozilla security error: Failed to load worker script https://s3-xxxxxxxxxx/static/js/flip-book/build/pdf.worker.js'; localhost viewer.js code PDFJS.imageResourcesPath = 'images/'; PDFJS.workerSrc = '/static/js/flip-book/build/pdf.worker.js'; PDFJS.cMapUrl = 'pdfjs/cmaps/'; PDFJS.cMapPacked = true; S3 bucket viewer.js code PDFJS.imageResourcesPath = 'images/'; PDFJS.workerSrc = 'https://s3-ap-xxxxxxx/static/js/flip-book/build/pdf.worker.js'; PDFJS.cMapUrl = 'pdfjs/cmaps/'; PDFJS.cMapPacked = true;

Modified by philipp

Additional System Details

Application

  • User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36

More Information