修改nacos跨域问题

This commit is contained in:
415084900@qq.com 2021-04-13 20:26:34 +08:00
parent 0d4455951f
commit 8fd8756c85

View File

@ -52,7 +52,7 @@ public class ConsoleConfig {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
config.addAllowedOrigin("*");
config.addAllowedOriginPattern("*");
config.addAllowedHeader("*");
config.setMaxAge(18000L);
config.addAllowedMethod("*");