Files
nexusphp/app/Http/Middleware/VerifyCsrfToken.php
2025-02-13 01:48:33 +08:00

20 lines
403 B
PHP

<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
const TG_WEBHOOK_PREFIX = "tg-webhook";
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
self::TG_WEBHOOK_PREFIX . "/*",
"web/token/*",
];
}