♻️ Refactoring code. 避免 cors 失效

This commit is contained in:
lbw committed 2023-11-10 22:11:22 +08:00
1 parent 7867476745
commit fc49d5c488
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("*");