vue-cookie
vue-cookie copied to clipboard
get method doesn't works correctly
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!
Was just about to come here and report the same thing. Is this actually a known issue ?
@AustinPaquette, unfortunately, I don't think so.
Hi guys I have experienced the same thing too, and came here to see its been logged as an issue. From the silence from the Author, looks like no solution in sight yet.
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.
@ivolimasilva, Fixed mine as well by setting HttpOnly to false.
It works for me as well. It should be closed. 😌
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?