标签:color apach round arp 部署 ack sha span pre
Access-Control-Allow-Origin: *
适用tomcat部署的项目
在web.xml里添加以下内容
<filter> <filter-name>CorsFilter</filter-name> <filter-class>org.apache.catalina.filters.CorsFilter</filter-class> </filter> <filter-mapping> <filter-name>CorsFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
标签:color apach round arp 部署 ack sha span pre
原文地址:http://www.cnblogs.com/xu-dong/p/6785588.html