|
@@ -102,6 +102,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|
|
httpSecurity
|
|
|
|
|
|
.csrf().disable()
|
|
|
+
|
|
|
+ .headers().cacheControl().disable().and()
|
|
|
|
|
|
.exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and()
|
|
|
|
|
@@ -109,7 +111,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|
|
|
|
|
.authorizeRequests()
|
|
|
|
|
|
- .antMatchers("/login", "/register", "/captchaImage").anonymous()
|
|
|
+ .antMatchers("/login", "/register", "/captchaImage").permitAll()
|
|
|
|
|
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
|
|
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
|
|
@@ -124,8 +126,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|
|
|
|
|
httpSecurity.addFilterBefore(corsFilter, JwtAuthenticationTokenFilter.class);
|
|
|
httpSecurity.addFilterBefore(corsFilter, LogoutFilter.class);
|
|
|
-
|
|
|
- httpSecurity.headers().cacheControl().disable();
|
|
|
}
|
|
|
|
|
|
|