chrome.cookies

Description: Use the chrome.cookies API to query and modify cookies, and to be notified when they change.
Availability: Stable since Chrome 6.
Permissions: "cookies"
host permissions

Manifest

To use the cookies API, you must declare the "cookies" permission in your manifest, along with host permissions for any hosts whose cookies you want to access. For example:

manifest.json
{ "name": "My extension", ... "permissions": [ "cookies", "*://*.google.com" ], ... }

Examples

You can find a simple example of using the cookies API in the examples/api/cookies directory. For other examples and for help in viewing the source code, see Samples.

chrome.cookies reference

Types

Represents information about an HTTP cookie.
name ( string )
The name of the cookie.
value ( string )
The value of the cookie.
domain ( string )
The domain of the cookie (e.g. "www.google.com", "example.com").
hostOnly ( boolean ) %