Commit ec91b3b9f45dcd8f267bf3d41534525b154dc2b4

Authored by Igor Kulikov
1 parent fea3e3d1

Add Cache Headers to disable API responses and index caching by browser.

@@ -149,7 +149,7 @@ public class ThingsboardSecurityConfiguration extends WebSecurityConfigurerAdapt @@ -149,7 +149,7 @@ public class ThingsboardSecurityConfiguration extends WebSecurityConfigurerAdapt
149 149
150 @Override 150 @Override
151 protected void configure(HttpSecurity http) throws Exception { 151 protected void configure(HttpSecurity http) throws Exception {
152 - http.headers().cacheControl().disable().frameOptions().disable() 152 + http.headers().cacheControl().and().frameOptions().disable()
153 .and() 153 .and()
154 .cors() 154 .cors()
155 .and() 155 .and()