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">host permissions</a> 6 for any hosts whose cookies 7 you want to access. 8 For example:</p> 9 10 <pre data-filename="manifest.json"> 11 { 12 "name": "My extension", 13 ... 14 <b>"permissions": [ 15 "cookies", 16 "*://*.google.com" 17 ]</b>, 18 ... 19 } 20 </pre> 21 22 <h2 id="examples"> Examples </h2> 23 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">Samples</a>. 32 </p> 33