title: fetch() cannot set cookies received from the server?
body: <p>I am using Express.js server. With <code>cookie-parser</code> I have opened this endpoint</p>
  
  <pre><code>app.get("/s", (req,res) =&gt; {
      res.cookie("bsaSession", req.session.id)
      res.send("set cookie ok")
  })
  </code></pre>
  
  <p>When I manually use the browser to <code>http://localhost:5555/s</code> where I have the website running the browser debug console shows that the cookie have been applied.</p>
  
  <p><a href="https://i.stack.imgur.com/w2NRq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/w2NRq.png" alt="enter image description here"></a></p>
  
  <p>But when I use <code>fetch</code> API to do the equivalent, it does not set the cookie.</p>
  
  <pre><code>  async trySetCookie()
    {
      await fetch("http://localhost:5555/s",{
         method: 'GET',
         credentials: 'same-origin'
      })
    }
  </code></pre>
  
  <p>Why?</p>