title: Uncaught TypeError: Cannot read properties of undefined (reading 'get')
body: <p>Check the code bellow. In my chorome extension code i am getting error: <code>Uncaught TypeError: Cannot read properties of undefined (reading 'get')</code> when i try to read cookie. Whats wrong i am doing here?</p>
  <p>content.js:</p>
  <pre><code>chrome.cookies.get({ url: 'http://example.com', name: 'somename' },
      function (cookie) {
        if (cookie) {
          console.log(cookie.value);
        }
        else {
          console.log('Can\'t get cookie! Check the name!');
        }
    });
  </code></pre>
  <p>manifest.json:</p>
  <pre><code>{
      &quot;manifest_version&quot;: 3,
      &quot;name&quot;: &quot;AutoMailSystem&quot;,
      &quot;version&quot;: &quot;1.0.0&quot;,
      &quot;host_permissions&quot;: [
          &quot;*://*.test.com/&quot;
        ],
        &quot;permissions&quot;: [
          &quot;cookies&quot;
        ],
      &quot;content_scripts&quot;: [
          {
              &quot;matches&quot;:[&quot;&lt;all_urls&gt;&quot;],
              &quot;js&quot;:[&quot;jq.js&quot;,&quot;Content.js&quot;]
              
          }
      ]
      
  
  }
  </code></pre>