Commit 9e995159 authored by gu-jinli1118's avatar gu-jinli1118
Browse files

跨域方法不识别

parent 4c388775
Pipeline #37 failed with stages
in 0 seconds
......@@ -57,7 +57,7 @@ public class ResourcesConfig implements WebMvcConfigurer
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
// 设置访问源地址
config.addAllowOrigins("*");
config.addAllowedOrigin("*");
// 设置访问源请求头
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