|
|
|
@ -176,16 +176,16 @@ public class ThingsboardSecurityConfiguration extends WebSecurityConfigurerAdapt |
|
|
|
return new BCryptPasswordEncoder(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void configure(WebSecurity web) throws Exception { |
|
|
|
web.ignoring().antMatchers("/*.js","/*.css","/*.ico","/assets/**","/static/**"); |
|
|
|
} |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private OAuth2AuthorizationRequestResolver oAuth2AuthorizationRequestResolver; |
|
|
|
|
|
|
|
@Override |
|
|
|
protected void configure(HttpSecurity http) throws Exception { |
|
|
|
http.authorizeHttpRequests((authorizeHttpRequests) -> |
|
|
|
authorizeHttpRequests |
|
|
|
.antMatchers("/*.js","/*.css","/*.ico","/assets/**","/static/**") |
|
|
|
.permitAll() |
|
|
|
); |
|
|
|
http.headers().cacheControl().and().frameOptions().disable() |
|
|
|
.and() |
|
|
|
.cors() |
|
|
|
|