-
Notifications
You must be signed in to change notification settings - Fork 22.2k
Closed
Labels
Description
I am running the Rails 5.0.0 beta1 and after deploying to production have noticed something odd. My application is running being an Nginx reverse proxy which decrypts SSL.
Every time I try to submit a form, a ActionController::InvalidAuthenticityToken is raised. I have managed to narrow this down to line 399 in ActionController. The problem is that the request origin has https:// as the protocol and the request base_url has http:// as the protocol.
I have tried setting the X-Forwarded-Proto header and using config.force_ssl = true but neither made any difference.
I have not yet figured out a way to isolate a failing test case but am happy to look into it if anyone has any suggestions.
Reactions are currently unavailable