mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 13:03:42 +08:00
修改nacos跨域问题
This commit is contained in:
parent
0d4455951f
commit
8fd8756c85
@ -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("*");
|
||||
|
Loading…
Reference in New Issue
Block a user