1<div id="pageData-name" class="pageData">Cookies</div> 2 3<!-- BEGIN AUTHORED CONTENT --> 4<h2 id="manifest">Manifest</h2> 5 6<p>To use the cookies API, 7you must declare the "cookies" permission in your manifest, 8along with <a href="manifest.html#permissions">host permissions</a> 9for any hosts whose cookies 10you want to access. 11For example:</p> 12 13<pre>{ 14 "name": "My extension", 15 ... 16 <b>"permissions": [ 17 "cookies", 18 "*://*.google.com" 19 ]</b>, 20 ... 21}</pre> 22 23<h2 id="examples"> Examples </h2> 24 25<p> 26You can find a simple example 27of using the cookies API in the 28<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/cookies/">examples/api/cookies</a> 29directory. 30For other examples 31and for help in viewing the source code, 32see <a href="samples.html">Samples</a>. 33</p> 34 35<!-- END AUTHORED CONTENT --> 36