I keep getting WARNING: Can't verify CSRF token authenticity when submeting a form from the root domain (domain.com) to a subdomain (example.domain.com). I found a way to share the cookies in all subdomains (domain: :all in session_store.rb), but i can't found a way to share the token. Anyone can help me?
I'm trying to figure it out this problem in here: http://stackoverflow.com/questions/8931066/cant-post-a-form-to-a-different-subdomain-via-ajax-warning-cant-verify-csrf
I keep getting
WARNING: Can't verify CSRF token authenticity
when submeting a form from the root domain (domain.com) to a subdomain (example.domain.com). I found a way to share the cookies in all subdomains (domain: :all
in session_store.rb), but i can't found a way to share the token. Anyone can help me?