This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ค้นหาฝ่ายสนับสนุน

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

เรียนรู้เพิ่มเติม

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

  • 1 การตอบกลับ
  • 1 คนมีปัญหานี้
  • 4 ครั้งที่ดู
  • ตอบกลับล่าสุดโดย WestEnd

more options

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;

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;

การตอบกลับทั้งหมด (1)

more options

Then the you the writer needs to go back and review the script again because something wasn't debugged before using it. FF executes how the script was written and if you made mistakes it will show up.