title: How to simulate cookie domain in browser
body: <p>I'm currently developing/testing a webapp in Node.js and ExpressJS.
  The server is running on <code>localhost:3000</code>, and in the code the cookie domain is set to <code>.webappname.com</code></p>
  
  <p>Whenever I'm trying to access cookie data within the browser, it fetches the cookie for <code>localhost</code>.</p>
  
  <p><strong>How can I make it fetch the cookie for the set domain?</strong></p>