首页 > TAG信息列表 > allowedMethods
SpringBoot跨域设置
@SpringBootConfiguration public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { //添加映射路径 registry.addMapping("/**") //是否发送CookieSpringBoot跨域设置
@SpringBootConfiguration public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { //添加映射路径 registry.addMapping("/**") //是否发送Cookie