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

177
Vistas
How to get document cookies in Ionic Angular

The app stores data in cookies after successful login. I need to retrieve the data back for another reason but I am unable to get it with the following JS command.

document.cookie

Is there any way to get the cookie? I tested the app in the desktop browser and can see the cookie stored in the browser's local storage.

I use the Ionic native HTTP plugin. https://ionicframework.com/docs/native/http

about 4 years ago · Santiago Gelvez
2 Respuestas
Responde la pregunta

0

I don't have all the information about the cookie here, but if the cookie is HttpOnly it cannot be accessed by javascript.

about 4 years ago · Santiago Gelvez Denunciar

0

The HTTP plugin has a method to get the cookie as a string.

The following is an example of how to get the cookie.

this.httpNative.getCookiesString(url);

In the param, need to pass a URL for which we need to retrieve the cookie.

about 4 years ago · Santiago Gelvez 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