Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!