Skip to content

Commit 061b576

Browse files
refactor(session): change xsrf cookie name to XSRF-TOKEN (#1642)
1 parent b61d352 commit 061b576

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/http/src/IsRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Tempest\Validation\SkipValidation;
1010

1111
use function Tempest\get;
12-
use function Tempest\Support\Arr\every;
1312
use function Tempest\Support\Arr\get_by_key;
1413
use function Tempest\Support\Arr\has_key;
1514
use function Tempest\Support\str;

packages/http/src/Session/VerifyCsrfMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#[Priority(Priority::FRAMEWORK)]
2424
final readonly class VerifyCsrfMiddleware implements HttpMiddleware
2525
{
26-
public const string CSRF_COOKIE_KEY = 'xsrf-token';
26+
public const string CSRF_COOKIE_KEY = 'XSRF-TOKEN';
2727
public const string CSRF_HEADER_KEY = 'x-xsrf-token';
2828

2929
public function __construct(

0 commit comments

Comments
 (0)