簡體   English   中英

Devise + Omniauth [警告:無法驗證CSRF令牌真實性]

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

我收到了這個警告

WARNING: Can't verify CSRF token authenticity

在我的回調動作運行之前,即

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

直接來自瀏覽器的請求沒有警告。 我使用rails 3.1,設計1.4.5,omniauth 0.2.6。

關於如何解決這個問題的想法?

謝謝!

關閉protect_from_forgery對我有用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM