← Back to Network domain
Network.getCookies
Returns all browser cookies for the current URL. Depending on the backend support, will return
detailed cookie information in the `cookies` field.
Domain: Network
stable
Parameters
| Name | Type | Description |
urls (optional) | array | The list of URLs for which applicable cookies will be fetched.
If not specified, it's assumed to be set to the list containing
the URLs of the page and all of its subframes. |
Returns
| Name | Type | Description |
cookies | array | Array of cookie objects. |
Example Request
{
"id": 1,
"method": "Network.getCookies"
}
Example Response
{
"id": 1,
"result": {
"cookies": []
}
}
Usage in Node.js
const result = await send('Network.getCookies');
console.log(result);
// {"cookies": []}