title: Why sessions cookies are not saved in browser?
body: <p>I'm making a website with angular and I use Flask as my API.
  Everything was ok until now, but I want to use session with flask, so I have to get the session cookie and send it back.</p>
  <h3>The problem is: Cookies are not saved on my browsers (Firefox/Google Chrome).</h3>
  <p>When I try with another tool like Insomnia/Postman, there is no problem! The cookie is saved and everything work when the cookie is sent back!</p>
  <p>I have read a lot of same situation (I mean, with the domain parameter which need two dots), but even when I try:</p>
  <blockquote>
  <p>angular client -&gt; dev.localhost.local</p>
  </blockquote>
  <blockquote>
  <p>Flask API -&gt; api.localhost.local</p>
  </blockquote>
  <blockquote>
  <p>domain -&gt; .localhost.local</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/cRm5R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cRm5R.png" alt="Get the set-cookie option" /></a></p>
  <blockquote>
  <p>the browser get the set-cookie options</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/RCzzb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RCzzb.png" alt="no cookie saved" /></a></p>
  <blockquote>
  <p>no cookie saved</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/6ePx2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6ePx2.png" alt="no session saved" /></a></p>
  <blockquote>
  <p>no session saved</p>
  </blockquote>
  <p>Browser just doesn't save my session...</p>
  <p>I tried a lot of configuration:</p>
  <p>Domain : <code>.localhost.local</code>, <code>localhost.local</code>,<code>dev.localhost.local</code>,<code>.dev.localhost.local</code></p>
  <p>I also tried to use different header to expose <code>set-cookie</code> and <code>cookie</code> header. I set the <code>Access-Control-Allow-Credentials</code> to True.</p>
  <p>Nothing is working, so if you have any idea, I take it.</p>