-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Description
The ms vscode java test runner extension inlines jquery-3.3.1.slim.min.js and a number of css files to generate it's view.
This was working fine while running 1.33.1, however using the latest v2 webview branch it's now generating content security policy errors when it tries to load those, creating the following error in chrome:
main.js:385 Refused to load the script 'http://localhost:8080/webview/vscode-resource/usr/local/extensions/vscjava.vscode-java-test-0.18.2/resources/templates/js/jquery-3.3.1.slim.min.js' because it violates the following Content Security Policy directive: "script-src vscode-resource: 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
The full console output:
And the code which is doing the loading: