1 <h2 id="manifest">Manifest</h2> 2 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> 9 10 <pre>{ 11 "name": "My extension", 12 ... 13 <b>"permissions": [ 14 "cookies", 15 "*://*.google.com" 16 ]</b>, 17 ... 18 }</pre> 19 20 <h2 id="examples"> Examples </h2> 21 22 <p> 23 You can find a simple example 24 of using the cookies API in the 25 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/cookies/">examples/api/cookies</a> 26 directory. 27 For other examples 28 and for help in viewing the source code, 29 see <a href="samples.html">Samples</a>. 30 </p> 31