diff --git a/src/Http/Helpers.php b/src/Http/Helpers.php index b04181cc..efde3de6 100644 --- a/src/Http/Helpers.php +++ b/src/Http/Helpers.php @@ -21,7 +21,7 @@ final class Helpers use Nette\StaticClass; /** @internal */ - public const STRICT_COOKIE_NAME = 'nette-samesite'; + public const STRICT_COOKIE_NAME = '_nss'; /** diff --git a/tests/Http.DI/HttpExtension.sameSiteProtection.phpt b/tests/Http.DI/HttpExtension.sameSiteProtection.phpt index a9d3dbb3..842d941d 100644 --- a/tests/Http.DI/HttpExtension.sameSiteProtection.phpt +++ b/tests/Http.DI/HttpExtension.sameSiteProtection.phpt @@ -26,7 +26,7 @@ $container->initialize(); $headers = headers_list(); Assert::contains( PHP_VERSION_ID >= 70300 - ? 'Set-Cookie: nette-samesite=1; path=/; HttpOnly; SameSite=Strict' - : 'Set-Cookie: nette-samesite=1; path=/; SameSite=Strict; HttpOnly', + ? 'Set-Cookie: _nss=1; path=/; HttpOnly; SameSite=Strict' + : 'Set-Cookie: _nss=1; path=/; SameSite=Strict; HttpOnly', $headers );