在需要的请求中注入注解

 @CrossOrigin(origins = {"http://172.12.0.123:8080", "https://h5.sample.com"}, maxAge = 3600)

  

  

 

相关文章: