Kad Kerforn
2008-Jan-16 18:51 UTC
REST Web Service ActionController::InvalidAuthenticityToken
I am trying to write a REST web service testing locally is fine but whane I deploy the server and try test it via curl curl -i -X POST -H ''Content-Type:application/xml'' -d '''' http://mytesteddomain.tld/user/posts/createReference.xml I get an error : ERROR TYPE: ActionController::InvalidAuthenticityToken ERROR MESSAGE: ActionController::InvalidAuthenticityToken I don''t have any protection in my app as I put a filter to avoid the login check before_filter :login_required, :except => [ :createReference] my Apache vhost.conf doesn''t block : <Directory "/var/rails/mytesteddomainname/current/public"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> where should I start looking for ? thansk for your help -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- InvalidAuthenticityToken problems with my login form
- ActionController::InvalidAuthenticityToken & :before
- Disabling Exception Notification for ActionController::InvalidAuthenticityToken
- ActionController::InvalidAuthenticityToken not thrown in Windows
- ActionController::InvalidAuthenticityToken in LoginController