Laravel 5: Ajax Post 500 (Internal Server Error)

前端 未结 5 799
终归单人心
终归单人心 2020-12-10 07:54

I\'m trying to submit data to the database via ajax. The submit article page works fine without ajax. I\'ve added console.log() just to see if anything is going

5条回答
  •  一生所求
    2020-12-10 08:28

    You can add your URLs to the VerifyCsrfToken.php middleware. The URLs will be excluded from CSRF verification:

    protected $except = [ "your url", "your url/abc" ];
    

提交回复
热议问题