gistfile1.txt 首先在pom.xml文件中加入以下依赖: com.thetransactioncompany java-property-utils 1.10 com.thetransactioncompany cors-filter 2.6 然后在web.xml文件中添加过滤器: 跨域过滤器 CORS com.thetransactioncom
首先在pom.xml文件中加入以下依赖:com.thetransactioncompany java-property-utils1.10 然后在web.xml文件中添加过滤器: com.thetransactioncompany cors-filter2.6 跨域过滤器 CORS com.thetransactioncompany.cors.CORSFilter cors.allowOrigin * cors.supportedMethods GET, POST, HEAD, PUT, DELETE cors.supportedHeaders Accept, Origin, X-Requested-With, Content-Type, Last-Modified cors.exposedHeaders Set-Cookie cors.supportsCredentials true CORS /app/*