-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbcb052
commit f5bae61
Showing
1 changed file
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f5bae61
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need 2 different keys? "validate_csrf_token" and "verify_csrf_token"
f5bae61
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be to keep backward compatibility.
array_unique will take care of duplicate
f5bae61
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
array_unique will not remove... I had to add both keys to my sanctum.php config file as I have a different VerifyCsrfToken class.
Should be
config('sanctum.middleware.validate_csrf_token', config('sanctum.middleware.verify_csrf_token',\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class)),
Instead
f5bae61
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taylorotwell my little feedback