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

71
Views
Cookie properties with `document.cookie` vs `cookieStore.get`

If I set a cookie with certain properties using document.cookie, they are reported back to me if I access the cookie with cookieStore.get, but not with document.cookie:

    document.cookie = ">>>Test123=Hello there; Secure; SameSite=Lax";
    console.log(document.cookie);
    cookieStore.get(">>>Test123").then(console.log);

document.cookie gives:

>>>Test123=Hello there

cookieStore.get gives:

{
  domain:null,
  expires:null,
  name:">>>Test123",
  path:"/834420",
  sameSite:"lax",
  secure:true,
  value:"Hello there"
}

Is there a way to get the information on, for instance, the SameSite property of a cookie without using cookieStore?

I've got the code here: https://playcode.io/834420/ if it helps

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!