atom-jscad icon indicating copy to clipboard operation
atom-jscad copied to clipboard

Atom refuses to create a worker

Open Holger-Will opened this issue 6 years ago • 5 comments

I get the following error when trying to render a preview:

Uncaught DOMException: Failed to construct 'Worker': Access to the script at 'blob:file:///4d8122a1-4c76-4188-8671-774ba8975a55' is denied by the document's Content Security Policy. at Function.OpenJsCad.parseJsCadScriptASync [as __old] (file:///home/holger/.atom/packages/atom-jscad/standalone/openjscad.js:259:16) at Function.parseJsCadScriptASync (/home/holger/.atom/packages/atom-jscad/standalone/overrides.js:86:34) at OpenJsCad.Processor.rebuildSolid (file:///home/holger/.atom/packages/atom-jscad/standalone/openjscad.js:857:33) at OpenJsCad.Processor.setJsCad (file:///home/holger/.atom/packages/atom-jscad/standalone/openjscad.js:777:12) at AtomScadPreviewView.module.exports.AtomScadPreviewView.render (/home/holger/.atom/packages/atom-jscad/lib/atom-scad-preview-view.js:147:20) at AtomScadPreviewView.dependencyLoaded (/home/holger/.atom/packages/atom-jscad/lib/atom-scad-preview-view.js:216:14)

Holger-Will avatar Aug 01 '18 07:08 Holger-Will

Same. Any suggestions or is this already closed?

ChrisGithubPrio avatar Aug 15 '18 14:08 ChrisGithubPrio

Hello. Same problem.

cerdoc avatar Sep 17 '18 10:09 cerdoc

same issue

WolfgangFahl avatar Mar 10 '19 16:03 WolfgangFahl

+1

cb1986ster avatar Mar 21 '19 09:03 cb1986ster

Unfortunately, new Atom break some APIs to allow Blob CSP. At first, schema changed from blob: to blob:file://, then they deprecated methods, which allows me to bypass security restrictions.

So, now it should be implemented as protocol

I don't have time for those games.

apla avatar Mar 31 '19 22:03 apla