tmccoid-tech / extract-em

Extract 'Em!: email attachment extraction extension for Mozilla Thunderbird
https://addons.thunderbird.net/en-US/thunderbird/addon/extract-em
Mozilla Public License 2.0
2 stars 0 forks source link

Use of web workers (zip.js) produces content security policy exception #5

Closed tmccoid-tech closed 3 months ago

tmccoid-tech commented 3 months ago

The message supplied to the Thunderbird debugger is as follows:

WW CSP error

gildas-lormeau commented 3 months ago

FYI, this can be solved by calling configure() and passing the path to dist/z-worker.js.

zip.configure({
  workerScripts: {
    deflate: ["dist/z-worker.js"],
    inflate: ["dist/z-worker.js"]
  }
});
tmccoid-tech commented 3 months ago

Thanks for your feedback. The solution did indeed work.

tmccoid-tech commented 3 months ago

Closed