Merge pull request #9965 from dataease/pr@dev-v2@fix_delete_request_cors

fix: 所有delete类型请求被判为跨域
This commit is contained in:
fit2cloud-chenyw 2024-05-30 10:42:13 +08:00 committed by GitHub
commit e18c7f2507
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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("*");
}
}