I have to set samesite_cookie to "None" to fix Chrome login issue on server. There are few threads people talking about this subject, i.e.
So I tried adding:
parameters:
session.storage.options:
cookie_samesite: None; Secure
to services.yml, or same thing, but without "Secure" part:
...
cookie_samesite: None;
then also tried doing it form settings.php like:
ini_set('session.cookie_samesite', 'none; Secure');
But with all tries, Firefox works well. Chrome won’t let me login – gives "Access denied" after submitting login form. Also line of behat test:
And I am logged in as a user with the "administrator" role
fails.
Locally, if I don’t add any of those everything works well, but it doesn’t on server so I have to set that cookie parameter. And if I try to set cookie_samesite, as explained above, it fails locally and on the server. I’m Drupal 9.1.12 currently.