From 6099312c0d8363487b6c617ce426370fb617e258 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Mon, 7 Oct 2019 14:13:02 +0800 Subject: [PATCH] Disable CSRF in unit tests --- config/testing/cms.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/testing/cms.php b/config/testing/cms.php index d29bbc3c3..8267ac3e4 100644 --- a/config/testing/cms.php +++ b/config/testing/cms.php @@ -109,4 +109,16 @@ return [ 'themesPathLocal' => base_path('tests/fixtures/themes'), + /* + |-------------------------------------------------------------------------- + | Cross Site Request Forgery (CSRF) Protection + |-------------------------------------------------------------------------- + | + | If the CSRF protection is enabled, all "postback" requests are checked + | for a valid security token. + | + */ + + 'enableCsrfProtection' => false + ];