fgrehm / letter_opener_web

A web interface for browsing Ruby on Rails sent emails
MIT License
719 stars 113 forks source link

ActionController::InvalidAuthenticityToken in LetterOpenerWeb::LettersController#clear #125

Open rafaelbiriba opened 2 years ago

rafaelbiriba commented 2 years ago

image

I am getting error from time to time when trying to use the clear button!

jaspermayone commented 8 months ago

Also having this issue.

jaspermayone commented 8 months ago

@fgrehm thoughts on what may be happening here?

fgrehm commented 6 months ago

Sorry, haven't used the gem in a while, @stevenharman is helping out with things these days too.

@stevenharman have you experienced that before? I might be able to set up a toy app to play with things at some point this month

stevenharman commented 6 months ago

I've not seen this, but my guess is Rails is being restarted between when the Letter Opener Web UI was loaded, and when the "clear" button was clicked, and thus the CSRF token isn't valid. But that's just a guess as I've not seen this myself.