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 |
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" ], ... }
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.