]> BookStack Code Mirror - bookstack/blob - app/Http/Middleware/VerifyCsrfToken.php
Merge branch 'openid' of https://github.com/jasperweyne/BookStack into jasperweyne...
[bookstack] / app / Http / Middleware / VerifyCsrfToken.php
1 <?php
2
3 namespace BookStack\Http\Middleware;
4
5 use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
6
7 class VerifyCsrfToken extends Middleware
8 {
9     /**
10      * Indicates whether the XSRF-TOKEN cookie should be set on the response.
11      *
12      * @var bool
13      */
14     protected $addHttpCookie = true;
15
16     /**
17      * The URIs that should be excluded from CSRF verification.
18      *
19      * @var array
20      */
21     protected $except = [
22         'saml2/*',
23         'openid/*',
24     ];
25 }