Commit 8eb6172dee17d3e89a17b0ad92cf3b47afb475b6
1 parent
9e1dbd4f
Ignore cache control headers for static resources.
Showing
1 changed file
with
6 additions
and
0 deletions
... | ... | @@ -28,6 +28,7 @@ import org.springframework.security.authentication.AuthenticationManager; |
28 | 28 | import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; |
29 | 29 | import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; |
30 | 30 | import org.springframework.security.config.annotation.web.builders.HttpSecurity; |
31 | +import org.springframework.security.config.annotation.web.builders.WebSecurity; | |
31 | 32 | import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; |
32 | 33 | import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; |
33 | 34 | import org.springframework.security.config.http.SessionCreationPolicy; |
... | ... | @@ -148,6 +149,11 @@ public class ThingsboardSecurityConfiguration extends WebSecurityConfigurerAdapt |
148 | 149 | } |
149 | 150 | |
150 | 151 | @Override |
152 | + public void configure(WebSecurity web) throws Exception { | |
153 | + web.ignoring().antMatchers("/static/**"); | |
154 | + } | |
155 | + | |
156 | + @Override | |
151 | 157 | protected void configure(HttpSecurity http) throws Exception { |
152 | 158 | http.headers().cacheControl().and().frameOptions().disable() |
153 | 159 | .and() | ... | ... |