-
Notifications
You must be signed in to change notification settings - Fork 393
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
Web worker importScripts violates CSP #562
Comments
can you provide a sample app? |
Not yet, just haven't had the time. |
Okay I have a sample reproduction you can use to see the problem.
At least this is what I get on my end, and that's the same problem happening in the real app. To be clear, the problem isn't with |
Have seen and trying to look at a similar issue. |
Ping 🙋♂️ . |
@jcesarmobile think this would help? GoogleChromeLabs/worker-plugin#36 |
looks like you have made changes in the sample app recently and running |
@jcesarmobile sorry I thought I had updated this issue. The problem was that I was using hard-coded paths to the imported scripts, so on version 2.x of the plugin where |
Please see #581, thanks. |
Hi,
I've been using v2.5.1 of this plugin until this week when I upgraded to 4.2.0 and then 4.2.1. However, my app's web workers are no longer working because the CSP is violated everywhere I use
importScripts
since I switched to 4.x.x. This does not happen when I revert to 2.5.1. This is what the error looks like:On v2.5.1 of this plugin I don't get this error and the workers work as expected. This is happening on Android, haven't confirmed on ios. I also use the comlink library to manage the workers.
Cordova: latest (9.x)
Cordova-android: latest from
master
branch of the cordova-android repoThe text was updated successfully, but these errors were encountered: