Cookies
Cookies copied to clipboard
JavaScript Client-Side Cookie Manipulation Library
What is type of value? You pass `string` and don't say a word if it is possible to pass JS objects. ``` // Setting a cookie value Cookies.set('key', 'value'); Cookies.set('key',...
Is there a way to clear all cookies under a domain, for example when a user logs out?
It doesn't work in browser environment. Or at least explain how to deploy it in a browser env. In your docs you write: ![cookies-js - google chrome 2017-01-20 11 03...
This PR makes this library able to support "SameSite" attribute. "SameSite" attribute is used to prevent CSRF attack. More about same-site cookies: http://www.sjoerdlangkemper.nl/2016/04/14/preventing-csrf-with-samesite-cookie-attribute/
If I am in `mydomain.com` and attempt to `Cookies.set('foo', 'bar', {domain: 'ANOTHERdomain.com'})`, nothing will happen, as I understand it. In other words, the write silently fails. Wouldn't it be good...