Commit 4c388775 authored by jinli gu's avatar jinli gu
Browse files

Update ResourcesConfig.java

parent 30cc7af7
Pipeline #36 canceled with stages
......@@ -57,7 +57,7 @@ public class ResourcesConfig implements WebMvcConfigurer
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
// 设置访问源地址
config.allowedOriginPatterns("*");
config.addAllowOrigins("*");
// 设置访问源请求头
config.addAllowedHeader("*");
// 设置访问源请求方法
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment