Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atom refuses to create a worker #12

Open
Holger-Will opened this issue Aug 1, 2018 · 5 comments
Open

Atom refuses to create a worker #12

Holger-Will opened this issue Aug 1, 2018 · 5 comments

Comments

@Holger-Will
Copy link

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)

@ChrisGithubPrio
Copy link

Same. Any suggestions or is this already closed?

@cerdoc
Copy link

cerdoc commented Sep 17, 2018

Hello.
Same problem.

@WolfgangFahl
Copy link

same issue

@cb1986ster
Copy link

+1

@apla
Copy link
Owner

apla commented Mar 31, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants