Files
backend/app/Http/Middleware/VerifyCsrfToken.php
2024-02-01 09:53:53 +00:00

34 lines
776 B
PHP

<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* Indicates whether the XSRF-TOKEN cookie should be set on the response.
*
* @var bool
*/
protected $addHttpCookie = true;
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'public/cmms-download',
'cmms/create',
'webapi/contracts/setad',
'webapi/contracts/eblagh',
'webapi/request',
'webapi/set-online',
'webapi/set-offline',
'webapi/profile/edit',
'webapi/camp/*',
'webapi/*',
'users/change_confirmed_status'
];
}