forked from github/dataease
Merge pull request #9965 from dataease/pr@dev-v2@fix_delete_request_cors
fix: 所有delete类型请求被判为跨域
This commit is contained in:
commit
e18c7f2507
@ -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("*");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user