Error loading webview

I created a HTML project but the web is not rendering and it showed the error below.
I have tried:

  • Reloading the page
  • Closing Chrome entirely
    But so far nothing worked.

Error loading webview: Error: Could not register service worker: SecurityError: Failed to register a ServiceWorker: The provided scriptURL ('https://0annlt6n7p30nvvl4csahgrrccupa98h7q84gpegvrlhrhgl44lg.cloudworkstations.googleusercontent.com/code-oss/0477875065b5d97c516e3065230f3f2188f33b48/out/vs/workbench/contrib/webview/browser/pre/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=idx-cmt-1733669521783.cluster-7ubberrabzh4qqy2g4z7wgxuw2.cloudworkstations.dev') violates the Content Security Policy..

Is this happening on a new project? If so, which template are you using?

hello im having same issue but with django, everything was fine until today. were you able to solve it and how?

Hey, if you’re using Kaspersky and having browser problems (Even on any other browser), I found a solution that might help!

I spent days trying to figure this out, but it’s actually pretty simple:

Just rename the “Report” folder to “Report1” in your Kaspersky installation directory.

That’s it! This fixed the issue for me.

I found this solution on the Kaspersky forum:

Kaspersky Forum: Google Chrome Problem - Kaspersky blocks it

Hope this helps someone else avoid the frustration I went through!

1 Like