main
leiguohui 1 month ago
parent 9eda593dd4
commit aeba220a9a

@ -9,7 +9,7 @@ import org.springframework.web.filter.CorsFilter;
@Configuration @Configuration
public class CorsConfig { public class CorsConfig {
// 当前跨域请求最大有效时长。这里默认1天 // 当前跨域请求最大有效时长。这里默认1天
private static final long MAX_AGE = 24 * 60 * 60; private static final long MAX_AGE = 24 * 60 * 60;
@Bean @Bean
public CorsFilter corsFilter() { public CorsFilter corsFilter() {

Loading…
Cancel
Save