Coverity Scan issues fix
[portal.git] / portal-BE / src / main / java / org / onap / portal / configuration / SecurityConfig.java
index c73f7d5..3fae09c 100644 (file)
@@ -75,7 +75,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
        protected void configure(HttpSecurity http) throws Exception {
               http
                       .authorizeRequests()
-                      .antMatchers("/static/img/**").permitAll()
+                      .antMatchers("/img/**").permitAll()
                       .anyRequest().authenticated()
                       .and()
                       .formLogin()
@@ -83,7 +83,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
                       .permitAll()
                       .and()
                       .logout()
-                      .permitAll();
+                      .permitAll()
+                      .and()
+                      .httpBasic();
 
               http.csrf().disable();
               http.headers().frameOptions().disable();