一些比较实用的软件教材

org.directwebremoting.dwrp.Batch - A request has been denied as a potential CSRF attack

 修改web.xml文件,在dwr的设置中,如下图示修改:
     <servlet>
<servlet-name>dwr-invoker</servlet-name>
<display-name>DWR Servlet</display-name>
<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
<init-param>
     <param-name>debug</param-name>
     <param-value>true</param-value>
</init-param>
</servlet>

添加红字示:

<servlet>
<servlet-name>dwr-invoker</servlet-name>
<display-name>DWR Servlet</display-name>
<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
<init-param>
     <param-name>debug</param-name>
     <param-value>true</param-value>
</init-param>
<init-param>
    <param-name>crossDomainSessionSecurity</param-name>
    <param-value>false</param-value>
</init-param>

</servlet>

关闭跨域会话安全设置..

posted @ 2012-06-12 15:23  子灏  阅读(892)  评论(0编辑  收藏  举报

传说中的阿里云服务