Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

122
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda