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

124
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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