inital commit
This commit is contained in:
34
app/Http/Middleware/VerifyCsrfToken.php
Normal file
34
app/Http/Middleware/VerifyCsrfToken.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?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'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user