If you have one action that is only json it is safe to...

protect_from_forgery :except => [:get_json]

Alex

On 11 Dec 2009, at 23:56, doug livesey wrote:

> Hi -- does anyone know how to get the request_from_forgery method to ignore 
> JSON calls, like it does for XML?
> Cheers,
>    Doug.
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "NWRUG" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/nwrug-members?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en.


Reply via email to