♻️ Refactoring code. 避免 cors 失效

This commit is contained in:
lbw committed 2023-12-03 23:44:10 +08:00
1 parent f0412ca7af
commit 57ed554883
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("*");
config.addAllowedHeader("*");
config.setMaxAge(18000L);
config.addAllowedMethod("*");