A request has been denied as a potential CSRF attack错误解决方法

2018-05-30 13:40:50 [http-nio-8081-exec-3] [ERROR] com.opensymphony.xwork2.interceptor.ParametersInterceptor -Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'id' on 'class com.huoq.admin.login.action.LoginBackgroundAction: Error setting expression 'id' with value ['2', ]
2018-05-30 13:40:51 [http-nio-8081-exec-2] [INFO ] com.huoq.admin.product.action.DataOverViewAction -加载数据 loadDataOverView com.huoq.admin.message.DataOverView@36bec9f7
2018-05-30 13:40:51 [http-nio-8081-exec-4] [ERROR] org.directwebremoting.dwrp.BaseCallMarshaller -A request has been denied as a potential CSRF attack.

 

修改 tomcat下context.xml修改为false

<Context useHttpOnly="false">

 

posted @ 2018-05-30 14:40  quicksand.F  阅读(1448)  评论(0编辑  收藏  举报