Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

121
Vistas
Security Issues: Injecting web3js into the window object of HTML

So I recently started learning web3js (using it with angular). And since using web3js with angular through the npm package is a bit cumbersome I was instead using a web3js cdn and injected it into the window object of my HTML (at the and of the body). Like this:

<script>
    if (typeof window.ethereum !== "undefined") {
        window.web3 = new Web3(window.ethereum);
    }
</script>

I was wondering if there are any security issues doing it like this? Should I stop doing it? I sadly couldn't find any information online regarding this topic. Also is it bad in general when I inject stuff into the window object or is it fine?

Was googling few hours but couldn't find any useful information.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda