title: Cookies are not getting saved in the browser with http header api response
body: <p>I am trying to use cookies to authenticate the user.
  from node.js I am sending cookies to my localhost on login with query -</p>
  
  <p><strong>res.cookie('jwt', generateToken(user), { maxAge: 432000, domain: '.localhost.com', httpOnly: true }</strong></p>
  
  <p>I have moddified my windos host file to point 127.0.0.1=> test.localhost.com</p>
  
  <p>Now when I login with credentials I get this response header with set-cookie option-</p>
  
  <p>SetCookie:<strong>jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1OGUzYTQxNWJmNjczMDBlMjQ1MjQ1YmQiLCJpYXQiOjE0OTE0ODcwMTcsImV4cCI6MTQ5MTQ; Max-Age=432; Domain=.localhost.com; Path=/; Expires=Thu, 06 Apr 2017 14:04:09 GMT; HttpOnly</strong></p>
  
  <p>But when I see the cookies in the browser it shows I don`t have any cookies for <a href="http://test.localhost.com:3002" rel="nofollow noreferrer">http://test.localhost.com:3002</a></p>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thanks.</p>