question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

get method doesn't works correctly

See original GitHub issue

If i add a new cookie by the setmethod then with the getmethod i can fetch it.
BUT if i use the getmethod to fetch a cookie that already exist (so i din’t use the setmethod). In that case the getmethod doesnt find anything!

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

3reactions
ivolimasilvacommented, Sep 18, 2017

Had this same issue when setting cookies from server. After searching I realised the cookies were set with HttpOnly flag as true, since it was default. After changing it to false, I was able to fetch it using the get method.

Be sure the same isn’t happening to you guys.

0reactions
OctaneInteractivecommented, Aug 25, 2019

I’m still having the problem, having tried two different packages.

app.use(
  session({
    name: 'sessionName',
    secret: process.env.SESSION_SECRET,
    saveUninitialized: true,
    resave: false,
    httpOnly: false,
    cookie: {
      secure: false
    }
  })
)

Any ideas?

Read more comments on GitHub >

github_iconTop Results From Across the Web

java GET method doesn't work - Stack Overflow
I wanted to write get request for one site (). but when I do it, it says me: "Oops! If you are seeing...
Read more >
Find method is not working correctly - MongoDB
Hello, I have big issue with .find .find( { _id: { $in: [ mongoose.Types.ObjectId('61dd423f973c056d38f8355f'), mongoose.Types.
Read more >
How to Use the Fetch API (Correctly) - CODE Magazine
Change the fetch() call in the get() method to add to the URL a “/9999”. The value “9999” is an invalid product ID...
Read more >
How to correct a #N/A error in the VLOOKUP function
Solution: You can try to fix this by adjusting your VLOOKUP to reference the correct column. If that's not possible, then try moving...
Read more >
Error Messages | Maps JavaScript API - Google Developers
If you find an error on Chrome JavaScript Console, Firefox Web Console or any ... Your page cannot load the API correctly, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found