Skip to content

Commit f987314

Browse files
authored
Always remove XSRF-TOKEN cookie value before sending to Sentry (#920)
1 parent ad29e34 commit f987314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sentry/Laravel/Http/LaravelRequestFetcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function fetchRequest(): ?ServerRequestInterface
4040
$cookies = new Collection($request->getCookieParams());
4141

4242
// We need to filter out the cookies that are not allowed to be sent to Sentry because they are very sensitive
43-
$forbiddenCookies = [config('session.cookie'), 'remember_*'];
43+
$forbiddenCookies = [config('session.cookie'), 'remember_*', 'XSRF-TOKEN'];
4444

4545
return $request->withCookieParams(
4646
$cookies->map(function ($value, string $key) use ($forbiddenCookies) {

0 commit comments

Comments
 (0)