Error loading webview: Error: Could not register service worker: SecurityError: Failed to register a ServiceWorker:

Error loading webview: Error: Could not register service worker: SecurityError: Failed to register a ServiceWorker: The provided scriptURL (‘https://1rg1brh17jvj6nmv4bq8sgobbvol3nhdqfmkolvit29dmsc2phh0.cloudworkstations.googleusercontent.com/code-oss/cde-7b4e1ded580460ce9e07b74ab8782f425fa95d99/out/vs/workbench/contrib/webview/browser/pre/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=firebase-lovedealergit-1746762742910.cluster-iktsryn7xnhpexlu6255bftka4.cloudworkstations.dev’) violates the Content Security Policy..

I can’t use firebase studio and gemini due to the above error

2 Likes

A mi también parece que se tienen problemas internos porque ya intente de todo y no solo es mi pc sino en todas mis cuentas.

This problem still exists now, even if I generate a new workspace.
I’m wondering if it’s caused by the fact that I didn’t get permission to use gemini 2.5 pro? :smiling_face_with_tear:

Lo llegaste a solucionar mi buen samaritano? les he escrito a los de soporte si me dicen algo te comunico

Ya lo conseguí arreglar he probado con dos soluciones:

  • Primera solución:

1.- En este caso como yo tengo kaspersky me ha estado bloqueando chrome de alguna manera y seguro puede pasar con otros antivirus.}

Tienes que desactivar la opción de autoprotección en Kaspersky que esta en ajustes generales en el apartado de seguridad.

2.- Después tendrás que salir del producto Kaspersky, en la barra de tareas de Windows o iconos ocultos, haga clic con el botón derecho en el icono de Kaspersky, seleccione Salir.

3.- Entras a C: ProgramData / Kaspersky Lab / AVP21.20 o cualquier versión que tengas / informe o project aparecera y de ahi solo tienes cambiarle el nombre y ponerle un 1 más como project1, Esto va a resetear el informe de kas para que se solucionen archivos corruptos

4.- Ahora reinicia tu Pc

5.- Asegúrate de que Kaspersky este cerrado y también desactivada la opción de autoprotección y posteriormente abre tu FireBase Studio.

6.- Si ya te cargo tu Web junto con Gemini puedes volver a habilitar todo otra vez tanto como Kaspersky y su autoprotección. Eso me ha servido a mi

  • Segunda solución:

Si por mas que hiciste la primera solución y sigue todo igual simplemente ten desactivado la autoprotección de tu antivirus y también lo cierras de raíz como ya explique y en esta solución solo te dedicaras a hacer tu código para no tener problemas.

1 Like

My dear friend, it is indeed true!

I do use Kaspersky to protect my computer, and it is largely because of Kaspersky’s protection of the computer that this has happened.

But the question arises: why does Kaspersky and many other anti-virus programs reject firebase studio? I think this is a very important issue for the development team to be aware of.

I thank you very much for your work and your answers! But just to be on the safe side, I’ll be happy to turn on my Kaspersky for protection!

Hopefully, the production team should quickly make changes to the product once this is brought to their attention.

@kirupa