title: node js session doesn't persist if the client is on a different domain
body: <p>I have a server node js and a client vue js.</p>
  <p>The client can be called from 2 domains.
  example:</p>
  <p><code>client.domain1.de</code></p>
  <p><code>client.domain2.de</code></p>
  <p>The server is available in the same domain as one of the clients.
  example:</p>
  <p><code>server.domain1.de</code></p>
  <p>In the node js application, I have Express using middleware session and I store login information on the session.</p>
  <p>If I call the server from the <code>domain1</code> the same domain client and server it stores just fine.</p>
  <p>if I called the server from a different domain <code>domain2</code> the session is not stored.</p>
  <p>the session is configured in such way:</p>
  <pre><code>export default session({
    store: new RedisStore({ client: redisClient }),
    secret: my-secret,
    saveUninitialized: false,
    resave: false,
    name: my name,
    cookie: {
      secure: true, 
      httpOnly: true,
      maxAge: my age,
      sameSite: 'lax',
    },
  });
  </code></pre>
  <p>Note that I am not talking about the cookie but instead extra session variable</p>