title: Cookie is not set in browser (Node.js + Express.js)
body: <p>I have a web server that sets a <code>httpOnly</code> cookie on the <code>res</code> object but it is not saved in the browser.</p>
  <pre><code>const refreshToken = 'my-token'
  res.cookie('refreshToken', refreshToken, { httpOnly: true, secure: true, sameSite: 'none' })
  </code></pre>
  <p>This server is served on <code>https://192.168.1.179:3001</code><br />
  The client application (Angular 11) is served on  <code>https://192.168.1.179:4200</code></p>
  <p>I generated self-signed ssl certificates for both the server and the client (And installed them as <code>Trusted root authorities</code>), don't know if that matters.</p>
  <p>The funny thing is that the browser receives this cookie:<br />
  <a href="https://i.stack.imgur.com/Ftp5l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ftp5l.png" alt="enter image description here" /></a></p>
  <p>EDIT: I also <code>app.use(cors())</code> if that matters</p>