tomcat配置跨域


 CorsFilter
  org.apache.catalina.filters.CorsFilter
 
   cors.allowed.origins
   *
  

  
  cors.allowed.methods
  GET,POST,HEAD,OPTIONS,PUT
  

  
  cors.allowed.headers
  Content-Type,X-Requested-With,Accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers
  

  
  cors.exposed.headers
  Access-Control-Allow-Origin,Access-Control-Allow-Credentials
  

  
  cors.support.credentials
  true
  

  
  cors.preflight.maxage
  10
  



 CorsFilter
  /*

你可能感兴趣的:(跨域,tomcat)