修复https形式访问nacos控制台时登录不了的bug

This commit is contained in:
geek committed 2022-07-26 16:27:54 +08:00
1 parent 5467e94e21
commit 3282f444e8
1 file changed
+1 -1
@@ -60,7 +60,7 @@ public class ConsoleConfig {
public CorsFilter corsFilter() {
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
config.addAllowedOrigin("*");
config.addAllowedOriginPattern("*"); // SpringBoot2.4.0 [allowedOriginPatterns]代替[allowedOrigins]
config.addAllowedHeader("*");
config.setMaxAge(18000L);
config.addAllowedMethod("*");