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

128
Visualizações
how do I trim or remove the header URL containing data in it using Angular

so in one component I'm having a form and after filling the form details, when the send button is clicked I send the data in encrypted format to another component using header. Belowis the code:

send(){
     this.router.navigate(['/customerportal/insta-pay/insurance-plan'],{
        queryParams:{data:btoa(JSON.stringify(data))}
      })
}

and when I look at the header of the component, I find this:

http://localhost:4200/customerportal/insta-pay/insurance-plan?data=W3siY29udGFjdCI6eyJtb2JpbGVOdW1iZXIiOiI5OTg5ODM1ODk1IiwiZW1haWwiOiJ2aXNoYWwxMjNAZ21haWwuY29tIiwiZmlyc3ROYW1lIjoiZmRudnZu

And, what I want is that I want to trim the header URL after data=W3siY29udGFjdCI6eyJtb2JpbGVOdW1iZXIiOiI5OT

and also that this data should be deleted completely as it is showing/visible in the sources tab of the browser and when I click on it the data is visible and that page is still accessible with all the sensitive data information.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If I understand well your problem, using query params doesn't seem to be the correct way to pass your data param.
Check This Link to have a complete answer on how we can pass params through Angular routing, and choose the most suited solution to your case ;)

about 4 years ago · Juan Pablo Isaza Relatório
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