Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / common / extensions / docs / templates / intros / cookies.html
blob605debef9e9054d6909ad84ba5e1a09c5c704cbc
1 <h2 id="manifest">Manifest</h2>
3 <p>To use the cookies API,
4 you must declare the "cookies" permission in your manifest,
5 along with <a href="declare_permissions.html">host permissions</a>
6 for any hosts whose cookies
7 you want to access.
8 For example:</p>
10 <pre data-filename="manifest.json">
12 "name": "My extension",
13 ...
14 <b>"permissions": [
15 "cookies",
16 "*://*.google.com"
17 ]</b>,
18 ...
20 </pre>
22 <h2 id="examples"> Examples </h2>
24 <p>
25 You can find a simple example
26 of using the cookies API in the
27 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/cookies/">examples/api/cookies</a>
28 directory.
29 For other examples
30 and for help in viewing the source code,
31 see <a href="samples.html">Samples</a>.
32 </p>