You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a more restrictive CSP, this results in a CSP error logged to the console, and preloading blocks that keep spinning forever. In this case, it would be nice to have an option to make Rainbow run the syntax highlighting synchronously instead of in a worker.
Feel free to suggest other solutions to the problem “Rainbow doesn’t work due to CSP”, of course… for example – is it really necessary to construct the worker script as a blob? Can’t it get the entire rainbow.js file?
The text was updated successfully, but these errors were encountered:
Since version 2, rainbow requires a Content-Security-Policy that allows
blob:
in workers, to support this:With a more restrictive CSP, this results in a CSP error logged to the console, and preloading blocks that keep spinning forever. In this case, it would be nice to have an option to make Rainbow run the syntax highlighting synchronously instead of in a worker.
Feel free to suggest other solutions to the problem “Rainbow doesn’t work due to CSP”, of course… for example – is it really necessary to construct the worker script as a blob? Can’t it get the entire
rainbow.js
file?The text was updated successfully, but these errors were encountered: