By anagomes on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.1.x
Introduced in version:
10.1.0
Issue links:
Description:
This SameSite value is now configurable in services.yml.
Follow this procedure to change the default from Lax to Strict or None:
- Change into the sites directory (E.g.,
sites/default) - If
services.ymldoesn't exist already, copydefault.services.ymltoservices.yml - Modify
services.yml. Navigate to theparameters:section, then thesession.storage.options:subsection, and set thecookie_samesiteparameter to the desired value.
Also see default.services.yml for instructions:
parameters:
session.storage.options:
# Set the SameSite cookie attribute: 'None', 'Lax', or 'Strict'. If set,
# this value will override the server value. See
# https://www.php.net/manual/en/session.security.ini.php for more
# information.
# @default no value
cookie_samesite: Lax
Impacts:
Site builders, administrators, editors
Comments
I've added 'cookie_samesite:
I've added 'cookie_samesite: Lax' in : parameters:session.storage.options of the service.yml but the warning message is still present in admin/reports/status#warning.
What is wrong ?
Me too
I've done the same and still have warning message. Not sure if the current session needs to end for the warning to go away. I tried deleting the domain+session cookies but made no difference
Same behavior, settings
Same behavior, settings applied, message remains. Please clarify.
Is this what you are seeing?
In web/core/modules/system/system.install at line 1315:
Here it is not stated clearly
Here it is not stated clearly, but the "cookie_samesite: Lax", should be of course under parameters > session.storage.options.
Here an example:
it is of course for D10 clearly visible from here https://git.drupalcode.org/project/drupal/-/blob/10.2.x/sites/default/de...
thank you
Thank you.