react-worker-dom | using Web Workers to Render React Virtual DOM | Server Side Rendering library
kandi X-RAY | react-worker-dom Summary
kandi X-RAY | react-worker-dom Summary
Experiments to see the advantages of using Web Workers to Render React Virtual DOM
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-worker-dom
react-worker-dom Key Features
react-worker-dom Examples and Code Snippets
Community Discussions
Trending Discussions on react-worker-dom
QUESTION
I'm developing several apps that use web workers and all of them are kind of broken using the latest Chrome V63.0.3230.132
.
This is the error message I see on the console:
[Report Only] Refused to create a worker from 'http://localhost:8080/d04af186322390d53036.worker.js' because it violates the following Content Security Policy directive: "worker-src 'none'".
I've also noticed some other sites behaving the same way.
Apparently, it doesn't matter how one creates that worker. I tried it in a react app using worker-loader, but also in a plain JS demo where I created it manually. The error remains the same.
What I triedI've got all the CSP headers in place, and also updated my manifest.json
files with the correct CSP entry to no avail.
All other browsers are working fine.
Can someone confirm or explain this behavior?
...ANSWER
Answered 2018-Feb-10 at 21:45Upd: in this case the issue was root-caused to having uMatrix plugin installed and enabled. Even when the plugin switched off the issue did remain. So there are two ways to workaround those confusing errors:
- Disable uMatrix completely in the Extension/Plugins menu in the browser. Using a built in "turn off" button in uMatrix will not help.
- Just let it go and ignore the warning.
The details are here https://github.com/gorhill/uMatrix/issues/926#issuecomment-359905357
Initial reply for history.
Xceno, did you confirm that Chrome really fails to load the worker?
I see the exact same error, but... the SW actually works. Maybe this is just a false-positive bug from Chrome.
Here is my code and what I see in console
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-worker-dom
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page