Identity Token (Rails 2) and REST APIs.

E

e deleflie

All,

I've got a remote application that is used for posting data to my
Rails 2 app. Took me about a day to realise that my posting wasn't
working because my submitted form did not contain an identity token
(introduced into Rails 2).

I can remove that function (on new posts) by doing:
protect_from_forgery :eek:nly => [:update, :destroy]

but I'm wondering how I could keep that feature and still post from my
client side app?

Etienne
 
B

Brian Candler

I've got a remote application that is used for posting data to my
Rails 2 app. Took me about a day to realise that my posting wasn't
working because my submitted form did not contain an identity token
(introduced into Rails 2).

I can remove that function (on new posts) by doing:
protect_from_forgery :eek:nly => [:update, :destroy]

but I'm wondering how I could keep that feature and still post from my
client side app?

Probably best asked on a Rails mailing list, as it's very specific to
the Rails framework. This list is for the Ruby programming language.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top