title: How does a browser handle cookie with no path and no domain
body: <p>I have googled this a lot now and have found conflicting answers. So my question is: how does a browser handle an HTTP cookie that has no <code>domain</code> and no <code>path</code> attributes?</p>
  
  <p>For example this response from server:</p>
  
  <pre><code>200 OK https://example.com/a/b (6047ms) 
  Set-Cookie: x-my-cookie=1.0; Max-Age=86400000; Expires=Sun, 05-Jan-2020    08:30:25 GMT
  </code></pre>
  
  <p>Should the cookie be included when making requests to <code>https://m.example.com/a/b</code>?</p>
  
  <p>What about <code>https://example.com/zzzz</code>?</p>
  
  <p>And <code>https://example.com/a</code>?</p>
  
  <p>And <code>https://example.com/a/b/c</code>?</p>
  
  <p>And <code>https://example.com</code>?</p>