title: symfony 5 samesite=none firefox
body: <p>i have a console error only on Firefox when using Synfony 5, i check everywhere for finding a solution but i see on a symfony issue that the problem come from to Firefox and I would like to be sure or find a solution about that.</p>
  <p>Console error:</p>
  <p>The &quot;sf_redirect&quot; cookie will soon be rejected because its &quot;SameSite&quot; attribute is set to &quot;None&quot; or an invalid value and it does not have the &quot;secure&quot; attribute. To learn more about the &quot;SameSite&quot; attribute, see <a href="https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite" rel="nofollow noreferrer">https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite</a><br />
  The &quot;sf_redirect&quot; cookie was rejected because it has already expired.</p>
  <p>Symfony 5 framework.yaml</p>
  <pre><code>framework:
  secret: '%env(APP_SECRET)%'
  #csrf_protection: true
  #http_method_override: true
  
  # Enables session support. Note that the session will ONLY be started if you read or write from it.
  # Remove or comment this section to explicitly disable session support.
  session:
      handler_id: null
      cookie_secure: auto
      cookie_samesite: lax
  
  #esi: true
  #fragments: true
  php_errors:
      log: true
  </code></pre>
  <p>Thank you in advance.</p>