Commit ec91b3b9f45dcd8f267bf3d41534525b154dc2b4
1 parent
fea3e3d1
Add Cache Headers to disable API responses and index caching by browser.
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -149,7 +149,7 @@ public class ThingsboardSecurityConfiguration extends WebSecurityConfigurerAdapt |
149 | 149 | |
150 | 150 | @Override |
151 | 151 | protected void configure(HttpSecurity http) throws Exception { |
152 | - http.headers().cacheControl().disable().frameOptions().disable() | |
152 | + http.headers().cacheControl().and().frameOptions().disable() | |
153 | 153 | .and() |
154 | 154 | .cors() |
155 | 155 | .and() | ... | ... |