严重: A request has been denied as a potential CSRF attack.
作者:互联网
A request has been denied as a potential CSRF attack.”
在web.xml配置文件中修改dwr的配置:
Xml代码
- <servlet>
- <servlet-name>dwr-invoker</servlet-name>
- <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
- <init-param>
- <param-name>debug</param-name>
- <param-value>true</param-value>
- </init-param>
- <!-- 新加corssDomainSessionSecurity参数 -->
- <init-param>
- <param-name>crossDomainSessionSecurity</param-name>
- <param-value>false</param-value>
- </init-param>
- </servlet>
加入红色部分后。问题就消失了。
标签:dwr,request,been,attack,potential,CSRF,denied 来源: https://www.cnblogs.com/qianzf/p/12625593.html