Skip to content

Commit 0769556

Browse files
bendiksolheimFagnerMartinsBrack
authored andcommitted
Correct notice on attributes in remove function
The notice stated that path, domain and secure attributes needs to be the same as when the cookie was created when removing a cookie, but in reality only the path and domain attributes needs to be the same. This commit removes "secure" from this notice. Closes js-cookiegh-204. Closes js-cookiegh-203.
1 parent f2b2571 commit 0769556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Cookies.remove('name'); // fail!
8686
Cookies.remove('name', { path: '' }); // removed!
8787
```
8888

89-
*IMPORTANT! when deleting a cookie, you must pass the exact same path, domain and secure attributes that were used to set the cookie, unless you're relying on the [default attributes](#cookie-attributes).*
89+
*IMPORTANT! when deleting a cookie, you must pass the exact same path and domain attributes that was used to set the cookie, unless you're relying on the [default attributes](#cookie-attributes).*
9090

9191
## Namespace conflicts
9292

0 commit comments

Comments
 (0)