开发者

Devise + Omniauth [WARNING: Can't verify CSRF token authenticity]

I am getting this warning

WARNING: Can't verify CSRF token authenticity

immediately before my callback action runs, i.e.

Started GET "/users/auth/open_id?openid_url=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid" for 98.xxx.xx.xx at 2011-09-12 16:26:02 -0400
Started GET "/users/auth/open_id/callback?openid_url=https%3A%2%2Fwww.google.com%2Faccounts ... etc ... etc
Processing by Users::OmniauthCallbacksController#open_id as HTML
Parameters: {"openid_url"=>"https://www.google.com/accounts/o8/id"}
WARNING: Can't verify CSRF token authenticity
Entering Users::OmniauthCallbacksController, omniauth_login

There is no warning for requests coming directly from the browser. I am using rails开发者_JAVA技巧 3.1, devise 1.4.5, omniauth 0.2.6.

Ideas on how to address this?

Thanks!


Turning off protect_from_forgery worked for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜