1

I'm getting InvalidAuthenticityToken exception on every post request for my rails 5 app, running in docker container. I'm using devise in application, is this something related to devise or anything else?

Abhishek
  • 93
  • 10
  • Are you making this post request from a rails view? or using other tools like Postman, curl, etc.? Could you please share the request from your logs? – Tarek N. Elsamni Aug 29 '18 at 12:05
  • @TarekN.Elsamni making request from rails view. – Abhishek Aug 29 '18 at 12:12
  • I think you are missing the `authenticity_token` in your form in the view. Are you building your form in native/pure html or using rails helpers? – Tarek N. Elsamni Aug 29 '18 at 12:14
  • @TarekN.Elsamni authenticity_token is present there in form and getting submitted to server.As i think, it is something related to docker and devise. – Abhishek Aug 29 '18 at 12:52

0 Answers0