fix: CSRF flow ships the raw token, not the HMAC cookie
This commit is contained in:
@@ -52,7 +52,7 @@ final class PostImageUploadTest extends TestCase
|
||||
get: [],
|
||||
post: ['_csrf' => $token],
|
||||
files: ['image' => ['name' => 'a.png', 'tmp_name' => $tmp, 'error' => 0, 'size' => 70, 'type' => 'image/png']],
|
||||
cookies: ['__csrf' => $cookie],
|
||||
cookies: ['__csrf' => $cookie, '__csrf_token' => $token],
|
||||
server: ['__csrf_secret' => self::SECRET],
|
||||
queryString: '',
|
||||
method: 'POST',
|
||||
@@ -78,7 +78,7 @@ final class PostImageUploadTest extends TestCase
|
||||
get: [],
|
||||
post: ['_csrf' => $token],
|
||||
files: ['image' => ['name' => 'a.png', 'tmp_name' => $tmp, 'error' => 0, 'size' => 12, 'type' => 'image/png']],
|
||||
cookies: ['__csrf' => $cookie],
|
||||
cookies: ['__csrf' => $cookie, '__csrf_token' => $token],
|
||||
server: ['__csrf_secret' => self::SECRET],
|
||||
queryString: '',
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user