1
我有一個表單只能控制動作URL。所以不能添加'_token'。是可以將數據獲取到我的控制器Laravel從外部提交數據後提交:TokenMismatchException(不添加_token)
聽從位置外部HTML表單主機
<!DOCTYPE html>
<html>
<head>
<title>Test HTML</title>
</head>
<body>
<form method="post" action="http://www.mylaravelproject.com/confirm">
<input type="textbox" name="fname">
<input type="textbox" name="lname">
<input type="submit">
</form>
</body>
</html>
我Laravel路由
Route::any('confirm','[email protected]');
內部控制
public function confirm(){
return Input::all();
}
這是可能的??
感謝
編輯:
才發現我能做到這一點通過清除管線(內部應用程序/ Httm/Kenel.php)
'App\Http\Middleware\VerifyCsrfToken',
第二個問題 但它的種類的安全風險。我只需要刪除這個特定路線上的VerifyCsrfToken'確認'。
這是可能的嗎?