Skip to content

Commit

Permalink
[SS-2018-007] Add CSRF middleware implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Carlino committed Dec 11, 2018
1 parent c68ef50 commit 4f68e4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _config/injector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ SilverStripe\Core\Injector\Injector:
class: SilverStripe\GraphQL\Manager
constructor:
identifier: admin
properties:
Middlewares:
CSRFMiddleware: '%$SilverStripe\GraphQL\Middleware\QueryMiddleware.csrf'
HTTPMethodMiddleware: '%$SilverStripe\GraphQL\Middleware\QueryMiddleware.httpMethod'
SilverStripe\GraphQL\Controller.admin:
class: SilverStripe\GraphQL\Controller
constructor:
Expand Down

0 comments on commit 4f68e4b

Please sign in to comment.