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

179
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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