2019-06-20 09:32
@j1066783215 请问您在handler 里面也是这样写吗?
if (allowedOrigins.contains(originHeader)){
response.setHeader("Access-Control-Allow-Origin", originHeader);
response.setHeader("Access-Control-Allow-Credentials", "true");
response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS,DELETE,PUT");
response.setHeader("Access-Control-Max-Age", "3600");
response.setHeader("Access-Control-Allow-Headers",
"Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With,Origin,Token,Accept, Connection, User-Agent, Cookie");
if("OPTIONS".equals(request.getMethod())){
response.setStatus(HttpServletResponse.SC_NO_CONTENT);
return;
}
}
2019-05-09 17:59
@JFinal
黏贴Html会被系统和谐过滤,就去掉标签了 黏贴部分name
name="monCoordinate" id="monCoordinate"
name="monWorkPlan" id="monWorkPlan"