`
ttitfly
  • 浏览: 616538 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

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能够从其他域进行请求,但是这样做会在安全性上有一些冒险.
分享到:
评论
1 楼 qiuzhiqing 2008-01-25  
安全性上有一些冒险
能讲清楚一点吗?

相关推荐

Global site tag (gtag.js) - Google Analytics