Springboot 解决跨域的四种姿势
实现 WebMvcConfigurer#addCorsMappings 的方法
importorg.springframework.context.annotation.Configuration;
importorg.springframework.web.servlet.config.annotation.CorsRegistry;
importorg.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Confi...
原创
2021-11-25 11:49:26 ·
121 阅读 ·
0 评论