summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/static/cookies.html
blob: a24196ddf766b6991dfed69d3dc2ad7c52222f4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!-- BEGIN AUTHORED CONTENT -->
<h2 id="manifest">Manifest</h2>

<p>To use the cookies API,
you must declare the "cookies" permission in your manifest,
along with <a href="manifest.html#permissions">host permissions</a>
for any hosts whose cookies
you want to access.
For example:</p>

<pre>{
  "name": "My extension",
  ...
  <b>"permissions": [
    "cookies",
    "*://*.google.com"
  ]</b>,
  ...
}</pre>

<h2 id="examples"> Examples </h2>

<p>
You can find a simple example
of using the cookies API in the
<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/cookies/">examples/api/cookies</a>
directory.
For other examples
and for help in viewing the source code,
see <a href="samples.html">Samples</a>.
</p>

<!-- END AUTHORED CONTENT -->