Skip to content

Commit

Permalink
fix: Fix CSRF token mismatch issue on POST requests
Browse files Browse the repository at this point in the history
  • Loading branch information
maicol07 committed Oct 1, 2022
1 parent 2896308 commit 4accc6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Expand Up @@ -96,7 +96,7 @@ protected function getHeaders(array $authorization = []): array

if ($token) {
$this->authorized = true;
Arr::set($headers, 'Authorization', "Token $token");
Arr::set($headers, 'Authorization', "Token $token; userId=1");
}

return $headers;
Expand Down

0 comments on commit 4accc6d

Please sign in to comment.