SEC-3120: Remove .and() from httpStrictTransportSecurity() doc

This commit is contained in:
Rob Winch 2015-10-30 09:10:47 -05:00
parent 8d9b06afb4
commit af2a431f23

View File

@ -3510,16 +3510,14 @@ You can easily do this with the following Java Configuration:
---- ----
@EnableWebSecurity @EnableWebSecurity
public class WebSecurityConfig extends public class WebSecurityConfig extends
WebSecurityConfigurerAdapter { WebSecurityConfigurerAdapter {
@Override @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {
http http
// ... // ...
.headers() .headers()
.frameOptions() .frameOptions().sameOrigin()
.sameOrigin()
.and()
.httpStrictTransportSecurity().disable(); .httpStrictTransportSecurity().disable();
} }
} }