实现跨域的JAR包

时间:2020-11-28 08:30:17
【文件属性】:
文件名称:实现跨域的JAR包
文件大小:28KB
文件格式:ZIP
更新时间:2020-11-28 08:30:17
跨域 Tomcat下的配置 下载cors-filter-1.7.jar,java-property-utils-1.9.jar这两个库文件,放到lib目录下。(可在 http://search.maven.org上查询并下载。)工程项目中web.xml中的配置如下: [html] view plaincopy在CODE上查看代码片派生到我的代码片 < ;filter-name>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 /*
【文件预览】:
跨域jar
----java-property-utils-1.9.jar(8KB)
----cors-filter-1.7.jar(25KB)

网友评论