Tomcat跨域

ZHOU_VIP發表於2019-03-08

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>

https://www.cnblogs.com/hxb2015/p/4605825.html

https://www.cnblogs.com/sloong/p/cors.html

相關文章