1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CakePHP4.2.3更新後にCSRFエラー

Last updated at Posted at 2021-02-03

cakephp/cakephp (4.2.0 => 4.2.3)
にアップデートしたら、更新処理時に以下のエラーが発生するようになった。

CSRF token from either the request body or request headers 
did not match or is missing.

image.png

以下を参考にCookieを消してみたところ、解決。
https://github.com/cakephp/cakephp/issues/14471
https://github.com/cakephp/cakephp/pull/14504

1
3
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
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?