2007-12-07

dwr 错误:org.directwebremoting.util.CommonsLogging

关键字: dwr 错误:org.directwebremoting.util.CommonsLogging
dwr遇到这种错误:
org.directwebremoting.util.CommonsLoggingOutput error
严重: A request has been denied as a potential CSRF attack.

主要原因是因为:
页面URL被跨站了的服务所调用.
解决办法:
在web.xml里dwr的servlet部分加上一个参数:
 
<init-param>   
            <param-name>crossDomainSessionSecurity</param-name>   
            <param-value>false</param-value>   
</init-param>


corssDomainSessionSecurity这个参数是在dwr版本2.0才有的.默认值为true,也就是禁止其他域发送请求,corssDomainSessionSecurity:设置成false能够从其他域进行请求,但是这样做会在安全性上有一些冒险.
评论
qiuzhiqing 2008-01-25
安全性上有一些冒险
能讲清楚一点吗?
发表评论

您还没有登录,请登录后发表评论

ttitfly
搜索本博客
我的相册
63e97aa5-d2de-33be-88c3-8f39d5279b8d-thumb
bbbb
共 3 张
存档
最新评论