BookStack/app/Http/Middleware/VerifyCsrfToken.php

25 lines
477 B
PHP
Raw Normal View History

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