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

154
Views
Does ajax or fetch api automatically send cookies with the request? If not then what is the way to achieve this?

I have login controller action that sends a cookie back to the user browser.

In every subsequent request the browser automatically places the cookie into the request and this is how the controller actions knows that the user is authenticated.

This question is to ask whether an ajax requset (example below) or fetch request that is made from the UI JavaScript code will also automatically send the cookie? If not, then is the correct way to read the cookie using document.cookie and add it into the ajax/fetch api request?

$.ajax({ type: "GET", url: "/Matter?matterId=" + matterId, success: (data) => { ....

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