求助大神,我在使用排除csrf保护时,一直无效
路由:
Route::post('/wo',function (){
echo "ok!";
})->name('wo');
排除:
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
class VerifyCsrfToken extends BaseVerifier
{
protected $except = [
'wo' //这里我试过'/wo' 'wo/' '/wo/' 都不行
];
}
一直提示TokenMismatchException in VerifyCsrfToken.php line 68:
不知哪里出现了问题,求大神指点,ORZ谢谢了
No Comments