Rails facebook Iframe应用程序错误:InvalidAuthentityToken



访问我的facebook iframe应用程序时出现此错误:

The change you wanted was rejected.
Maybe you tried to change something you didn't have access to.

Heroku日志:

2011-06-05T08:30:41+00:00 app[web.1]: Started POST "/facebook/" for xxxx
03 at 2011-06-05 10:30:41 +0200
2011-06-05T08:30:41+00:00 heroku[router]: POST www.vinderhimlen.dk/facebook/ dyn
o=web.1 queue=0 wait=0ms service=39ms bytes=711
2011-06-05T08:30:41+00:00 app[web.1]:
2011-06-05T08:30:41+00:00 app[web.1]: ActionController::InvalidAuthenticityToken
 (ActionController::InvalidAuthenticityToken):
2011-06-05T08:30:41+00:00 app[web.1]:
2011-06-05T08:30:41+00:00 app[web.1]:
2011-06-05T08:30:41+00:00 app[web.1]:
2011-06-05T08:30:45+00:00 heroku[web.1]: Stopping process with SIGTERM
2011-06-05T08:30:45+00:00 app[web.1]: >> Stopping ...
2011-06-05T08:30:45+00:00 heroku[web.1]: Process exited
Iceberg@ICEBERG-PC /c/rails/konkurranceportalen (master)
$

默认情况下,Rails要求在每次POST中都包含一个令牌作为隐藏字段。

这可以保护您的应用程序免受跨站点请求伪造。

请参阅Rails请求伪造保护文档。

CCD_ 1可能对进一步的调试有用。

相关内容

  • 没有找到相关文章

最新更新