Skip to content

Commit

Permalink
Remove CSRF from API POST functions
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Jan 9, 2019
1 parent 68ae7c1 commit 2f05ce4
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,26 @@ class Kernel extends HttpKernel {
Middleware\ControllerEnabled::class,
],

'public/api/v4' => [
'web',
'apibase' => [
Middleware\EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
ShareErrorsFromSession::class,
SubstituteBindings::class,
Middleware\ControllerEnabled::class,
'throttle:60,1',
'bindings',
'apimaybeauth',
Middleware\ControllerEnabled::class,
],

'public/api/v4' => [
'apibase',
'apimaybeauth',
],

'api/v4' => [
'web',
'throttle:60,1',
'bindings',
'apibase',
'apiauth',
Middleware\ControllerEnabled::class,
],

'd2frontend' => [
Expand Down

0 comments on commit 2f05ce4

Please sign in to comment.