0
0

More than 1 year has passed since last update.

Railsのdevice_auth_tokenでActionController::InvalidAuthenticityTokenがでてしまう

Posted at

はじめに

この記事は2022年2月にまとめていた「細かいつまずいたことをメモしておく(2月編)をそれぞれ投稿した内容になります
解決方法が最新でない可能性もありますのでご了承ください

問題

device_auth_tokenを利用したところActionController::InvalidAuthenticityTokenというエラーがでた

解決方法

Application_controller.rbprotect_from_forgeryを追加したら200が返ってきた

参考

0
0
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
0
0