2015-07-13 03:01:42 +08:00
|
|
|
<?php
|
|
|
|
|
2015-09-11 02:31:09 +08:00
|
|
|
namespace BookStack\Http\Middleware;
|
2015-07-13 03:01:42 +08:00
|
|
|
|
2017-11-19 23:56:06 +08:00
|
|
|
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
|
2015-07-13 03:01:42 +08:00
|
|
|
|
2017-11-19 23:56:06 +08:00
|
|
|
class VerifyCsrfToken extends Middleware
|
2015-07-13 03:01:42 +08:00
|
|
|
{
|
2019-09-07 06:36:16 +08:00
|
|
|
/**
|
|
|
|
* Indicates whether the XSRF-TOKEN cookie should be set on the response.
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
protected $addHttpCookie = true;
|
|
|
|
|
2015-07-13 03:01:42 +08:00
|
|
|
/**
|
|
|
|
* The URIs that should be excluded from CSRF verification.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $except = [
|
2019-11-17 21:26:43 +08:00
|
|
|
'saml2/*'
|
2015-07-13 03:01:42 +08:00
|
|
|
];
|
|
|
|
}
|