Skip to content

Commit 9e03327

Browse files
committed
Merge branch 'main' of github.com:hypervel/components
2 parents bfca2ec + f55b925 commit 9e03327

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/foundation/src/Http/Middleware/VerifyCsrfToken.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ protected function tokensMatch(): bool
116116
protected function getTokenFromRequest(): ?string
117117
{
118118
return $this->request->input('_token')
119+
?? $this->request->header('X-XSRF-TOKEN')
119120
?? $this->request->header('X-CSRF-TOKEN')
120121
?? null;
121122
}

0 commit comments

Comments
 (0)