fix: 所有delete类型请求被判为跨域

This commit is contained in:
fit2cloud-chenyw 2024-05-30 10:41:04 +08:00
parent 4bdddf029e
commit 5002b88bc9

View File

@ -34,6 +34,11 @@ public class CorsConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**");
registry.addMapping("/**")
.allowCredentials(true)
.allowedOriginPatterns("*")
.allowedHeaders("*")
.maxAge(3600)
.allowedMethods("*");
}
}