Rails是否依赖cookie? 看来,Flash是会话的一部分,并且会话使用cookie ...因此,当我在Firefox中禁用cookie时,正在工作的Rails应用程序显示
[错误] ActionController :: InvalidAuthenticityToken
因此,对于RoR应用程序来说,Cookie是强制性的吗?
更新:或者,为了让Rails应用程序再次工作,最简单的方法是什么? (如果它只有一台服务器(Apache运行mod_rails),那么更容易吗?)
is it true that Rails depend on cookies? It seems that flash is a part of session, and session uses cookies... so when i disable cookie in Firefox, a Rails app that was working shows
[error] ActionController::InvalidAuthenticityToken
so is it true that for a RoR app to work, cookies are mandatory?
Update: or, to make the Rails app work again, what is the simplest way? (and if it is one server only (Apache running mod_rails), then is it easier?)
最满意答案
他们不是强制性的,但有些事情你不能没有cookies。 您可以按照此处所述关闭真实性令牌。
They are not mandatory, but there are some things you can't do without cookies. You can turn the authenticity tokens off as described here.
更多推荐
发布评论