Unfortunately, the app is mainly (but not all) a web service, and as I use RESTful methods, I can't be selective with actions. Unless there's some way to specify controller names in the except option, as well?
2009/12/11 Alex Barlow <[email protected]> > 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]<nwrug-members%[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.
