title: Cookies only seted in debugg mode
body: <p>Cookies are saved locally in the normal way, but when I upload the changes to the server, the cookies are only saved if the browser's debug mode is open.
  The proyect is ASP .NET Core</p>
  <p>The cookie:
  <code>document.cookie = 'cookie-value; SameSite=Lax; secure';</code></p>
  <p>local url: https://...</p>
  <p>server url: http://...</p>