Skip to content

Commit

Permalink
fixes csrf
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Aug 21, 2017
1 parent dd40efa commit 5beb672
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ function __construct(
$this->request = $request;
}

/**
* @inheritdoc
*/
public function beforeAction($action)
{
// disable csrf
$this->enableCsrfValidation = false;

return parent::beforeAction($action);
}

function actionIndex()
{
// \Yii::beginProfile('craftQl');
Expand Down

0 comments on commit 5beb672

Please # to comment.