DWR2跨域访问异常【A request has been denied as a potential CSRF attack】

阅读更多

异常:

A request has been denied as a potential CSRF attack

java.lang.SecurityException, Session Error

发生:升级dwr2、tomcat7、weblogic11、jsp中dwr路径问题

解决:

1、添加跨域访问参数

         dwr-invoker

         org.directwebremoting.servlet.DwrServlet

        

                   debug

                   true

        

        

               

             crossDomainSessionSecurity      

             false      

        

2、调整jsp的dwr路径:

测试页面的路径:/Struts12/WebRoot/dwrDemo/index.jsp

调整前:

调整后,访问正常:

 

 

 

 

【】

你可能感兴趣的:(dwr)