Commit 4d7402a3 by 熊付

【跨域】

1 parent 57a67c4e
...@@ -16,5 +16,6 @@ public class BaseController extends WebMvcConfigurerAdapter { ...@@ -16,5 +16,6 @@ public class BaseController extends WebMvcConfigurerAdapter {
.allowedOrigins("*") .allowedOrigins("*")
.allowedMethods("GET","POST","PUT","OPTION","DELETE","PATCH") .allowedMethods("GET","POST","PUT","OPTION","DELETE","PATCH")
.allowCredentials(true).maxAge(3600); .allowCredentials(true).maxAge(3600);
super.addCorsMappings(corsRegistry);
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!