bug 修改
This commit is contained in:
parent
0f517869ad
commit
8fd40ff8af
|
|
@ -1,3 +1,4 @@
|
|||
/*
|
||||
package com.bonus.gzcar.manager.common.config;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
|
@ -33,4 +34,4 @@ public class CspFilter implements Filter {
|
|||
|
||||
@Override
|
||||
public void destroy() {}
|
||||
}
|
||||
}*/
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
|||
};
|
||||
}
|
||||
|
||||
@Bean
|
||||
/* @Bean
|
||||
public FilterRegistrationBean<CspFilter> cspFilterRegistration() {
|
||||
FilterRegistrationBean<CspFilter> registration = new FilterRegistrationBean<>();
|
||||
registration.setFilter(new CspFilter());
|
||||
|
|
@ -47,7 +47,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
|||
registration.setName("cspFilter");
|
||||
registration.setOrder(Ordered.HIGHEST_PRECEDENCE); // 确保优先级最高,避免被其他过滤器覆盖
|
||||
return registration;
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue