Skip to content

Commit

Permalink
cookie nette-samesite renamed to _nss
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 4, 2021
1 parent 18352fb commit bda06a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Http/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ final class Helpers
use Nette\StaticClass;

/** @internal */
public const STRICT_COOKIE_NAME = 'nette-samesite';
public const STRICT_COOKIE_NAME = '_nss';


/**
Expand Down
4 changes: 2 additions & 2 deletions tests/Http.DI/HttpExtension.sameSiteProtection.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

0 comments on commit bda06a4

Please sign in to comment.