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>
关闭跨域会话安全设置..