We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef3c946 commit d7534cdCopy full SHA for d7534cd
README.md
@@ -95,6 +95,16 @@ Read all visible cookies:
95
Cookies.get(); // => { name: 'value' }
96
```
97
98
+*Note: It is not possible to read a particular cookie by passing one of the cookie attributes (which may or may not
99
+have been used when writing the cookie in question):*
100
+
101
+```javascript
102
+Cookies.get('foo', domain: { 'sub.example.com' }); // `domain` won't have any effect...!
103
+```
104
105
+The cookie with the name `foo` will only be available on `.get()` if it's visible from where the
106
+code is called; the domain and/or path attribute will not have an effect when reading.
107
108
Delete cookie:
109
110
```javascript
0 commit comments