We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have just tested this plugin and I have successfully set a cookie in my sails.js application with following code:
Cookies = require("cookies"), Keygrip = require("keygrip"), keys = Keygrip(["SEKRIT2", "SEKRIT1"], 'sha256'), ... var cookies = new Cookies( req, res, keys ); cookies.set("username", username, {signed: true});
and I can see this cookie using "Edit this cookie" chrome dev plugin but I cannot read it using jquery
jquery
console.log( JSON.stringify($.cookie()) ); var username = $.cookie("username");
$.cookie() is empty and $.cookie("username") is undefined.
$.cookie()
$.cookie("username")
The text was updated successfully, but these errors were encountered:
Ok, I didn't read the documentation. I had to set httpOnly to false
httpOnly
false
cookies.set("username", user.username, {signed: true, httpOnly: false});
Sorry, something went wrong.
No branches or pull requests
I have just tested this plugin and I have successfully set a cookie in my sails.js application with following code:
and I can see this cookie using "Edit this cookie" chrome dev plugin but I cannot read it using
jquery
$.cookie()
is empty and$.cookie("username")
is undefined.The text was updated successfully, but these errors were encountered: