LoginSignup
2
1

More than 5 years have passed since last update.

Failed to load resource: the server responded with a status of 419 (unknown status)

Last updated at Posted at 2018-02-02

環境

  • php7.1
  • laravel5.4

発生状況

ajaxでサーバにPOST送信した

今回の発生原因

フレームワークによって生成されるCSRFトークンがリクエストヘッダに追加されていなかったため

今回の解決策

フレームワークによって生成されるCSRFトークンをリクエストヘッダに追加

参考

その他

エラーが解消されたら是非いいねお願いします

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1