Skip to content

Commit bda06a4

Browse files
committed
cookie nette-samesite renamed to _nss
1 parent 18352fb commit bda06a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Http/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class Helpers
2121
use Nette\StaticClass;
2222

2323
/** @internal */
24-
public const STRICT_COOKIE_NAME = 'nette-samesite';
24+
public const STRICT_COOKIE_NAME = '_nss';
2525

2626

2727
/**

tests/Http.DI/HttpExtension.sameSiteProtection.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $container->initialize();
2626
$headers = headers_list();
2727
Assert::contains(
2828
PHP_VERSION_ID >= 70300
29-
? 'Set-Cookie: nette-samesite=1; path=/; HttpOnly; SameSite=Strict'
30-
: 'Set-Cookie: nette-samesite=1; path=/; SameSite=Strict; HttpOnly',
29+
? 'Set-Cookie: _nss=1; path=/; HttpOnly; SameSite=Strict'
30+
: 'Set-Cookie: _nss=1; path=/; SameSite=Strict; HttpOnly',
3131
$headers
3232
);

0 commit comments

Comments
 (0)