mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Initial implementation of CSRF token enforcement in Security class
This commit is contained in:
parent
b8569aa5ab
commit
89255d0281
2 changed files with 22 additions and 7 deletions
|
|
@ -111,7 +111,7 @@ class SecurityTest extends \Codeception\TestCase\Test
|
|||
$this->assertTrue(Rhymix\Framework\Security::checkCSRF());
|
||||
|
||||
$_SERVER['REQUEST_METHOD'] = 'POST';
|
||||
$this->assertTrue(Rhymix\Framework\Security::checkCSRF());
|
||||
$this->assertFalse(Rhymix\Framework\Security::checkCSRF());
|
||||
|
||||
$_SERVER['HTTP_REFERER'] = 'http://www.foobar.com/';
|
||||
$this->assertFalse(Rhymix\Framework\Security::checkCSRF());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue