Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Coverity Scan issues fix
[portal.git]
/
portal-BE
/
src
/
main
/
java
/
org
/
onap
/
portal
/
configuration
/
SecurityConfig.java
diff --git
a/portal-BE/src/main/java/org/onap/portal/configuration/SecurityConfig.java
b/portal-BE/src/main/java/org/onap/portal/configuration/SecurityConfig.java
index
c73f7d5
..
3fae09c
100644
(file)
--- a/
portal-BE/src/main/java/org/onap/portal/configuration/SecurityConfig.java
+++ b/
portal-BE/src/main/java/org/onap/portal/configuration/SecurityConfig.java
@@
-75,7
+75,7
@@
public class SecurityConfig extends WebSecurityConfigurerAdapter {
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
- .antMatchers("/
static/
img/**").permitAll()
+ .antMatchers("/img/**").permitAll()
.anyRequest().authenticated()
.and()
.formLogin()
.anyRequest().authenticated()
.and()
.formLogin()
@@
-83,7
+83,9
@@
public class SecurityConfig extends WebSecurityConfigurerAdapter {
.permitAll()
.and()
.logout()
.permitAll()
.and()
.logout()
- .permitAll();
+ .permitAll()
+ .and()
+ .httpBasic();
http.csrf().disable();
http.headers().frameOptions().disable();
http.csrf().disable();
http.headers().frameOptions().disable();