feat(dify): 添加跨域支持修改
This commit is contained in:
parent
44d8353a54
commit
accd5221b6
@ -49,9 +49,9 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
|
|||||||
@Override
|
@Override
|
||||||
public void addCorsMappings(CorsRegistry registry) {
|
public void addCorsMappings(CorsRegistry registry) {
|
||||||
registry.addMapping("/**")
|
registry.addMapping("/**")
|
||||||
.allowCredentials(true)
|
|
||||||
.allowedOrigins("*")
|
.allowedOrigins("*")
|
||||||
.allowedMethods("*")
|
.allowedMethods("GET", "POST", "PUT", "DELETE")
|
||||||
.allowedHeaders("*");
|
.allowedHeaders("*")
|
||||||
|
.exposedHeaders("*");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user