!102 注册中心被代理成其他端口后,出现的跨域问题不能登录的问题

Merge pull request !102 from xiaojiaya/master
This commit is contained in:
lbw 2021-04-13 20:47:47 +08:00 committed by Gitee
commit 9a16a5ff0b

View File

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