dev 環境を更新したら、ログインできなくなりました。
デバッグコンソールには次のように表示されます:POST http://localhost:3000/session 403 (Forbidden)。
ログファイルには以下が記録されています:
Can't verify CSRF token authenticity.
Rendering text template
Rendered text template (Duration: 0.1ms | Allocations: 3)
Filter chain halted as :verify_authenticity_token rendered or redirected
Completed 403 Forbidden in 39ms (Views: 38.2ms | ActiveRecord: 0.0ms | Allocations: 2987)
Meta にはこの問題に関するトピックがいくつかありますが、それらはすべて nginx の設定不良に関するものです。私はリバースプロキシを使用しておらず、Win 10 の WSL 上で標準の dev 環境(localhost:3000 で動作する puma)のみを使用しています。
Discourse を完全に再インストールしましたが、問題は解消されません。rail コンソールで SiteSetting.force_https = false を試しましたが、解決しませんでした。
アドバイスをお願いします。