update READ.md setCookie

This commit is contained in:
Shane Tully
2022-09-22 21:48:40 +01:00
parent 320ed35022
commit 1218a57e5f

View File

@@ -163,7 +163,7 @@ cordova.plugin.http.getCookieString(url);
```
### setCookie
Add a custom cookie. Takes a URL, a cookie string and an options object. See [ToughCookie documentation](https://github.com/salesforce/tough-cookie#setcookiecookieorstring-currenturl-options-cberrcookie) for allowed options.
Add a custom cookie. Takes a URL, a cookie string and an options object. See [ToughCookie documentation](https://github.com/salesforce/tough-cookie#setcookiecookieorstring-currenturl-options-cberrcookie) for allowed options. Cookie will persist until removed with [removeCookies](#removecookies) or [clearCookies](#clearcookies).
```js
cordova.plugin.http.setCookie(url, cookie, options);