HTML5 Mobile
Written by: Max Firtman
Featured Refcardz: Top Refcardz:
  1. Git
  2. Data Mining
  3. Spring Data
  4. Subversion
  5. HTML5 Mobile
  1. HTML5 Mobile
  2. HTML5
  3. Subversion
  4. Git
  5. Java

Link Details

Link 395955 thumbnail
User 225256 avatar

By mswatcher
via metaskills.net
Published: Apr 14 2010 / 09:14

A while back ago I wrote an article about how to use Rails built-in forgery protection in your RESTful AJAX calls. Normally AJAX requests, those responding true to request.xhr? in rails, are forgery whitelisted. But sometimes, and under what conditions I am not sure, AJAX methods are subjected to forgery protection. Maybe you have the ActionDispatch::Request#forgery_whitelisted? overridden to not include AJAX requests? Either way and for whatever reason
  • 10
  • 0
  • 2380
  • 1

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.