Twilio & Rails: 502 Bad Gateway Error Solution

I ran into an issue while writing a Twilio app in Rails where Twilio kept getting a 502 bad gateway error. The url I was using was definitely working, so that wasn’t the issue. I did a little google sleuthing and the answer is putting the following code into the controller:

skip_before_filter :verify_authenticity_token

Posted by Liah on Sunday, July 25, 2010