Skip to content

Commit

Permalink
[SHIBUI-808]
Browse files Browse the repository at this point in the history
add missing firewall
  • Loading branch information
jj committed Oct 5, 2018
1 parent a54ba7c commit e4b8be4
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.web.authentication.www.BasicAuthenticationFilter;
import org.springframework.security.web.firewall.StrictHttpFirewall;

@Configuration
public class WebSecurity {
Expand Down Expand Up @@ -43,5 +44,14 @@ protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable();
http.headers().frameOptions().disable();
}

@Override
public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws Exception {
super.configure(web);

StrictHttpFirewall firewall = new StrictHttpFirewall();
firewall.setAllowUrlEncodedSlash(true);
web.httpFirewall(firewall);
}
}
}

0 comments on commit e4b8be4

Please sign in to comment.