削除処理を呼び出し時にActionController::InvalidAuthenticityTokenが発生
解決
dockerで開発しているが、ポートを変更している為に発生している模様。nginxなどでヘッダーのトークンを書き換えればいいかなと。 それが面倒な時は下記。
protect_from_forgery :except => ["destroy"] 事象
deleteのmethod(destroy)を実行しようとすると、 ActionController::InvalidAuthenticityToken が発生する
This post is licensed under CC BY 4.0 by the author.