mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-07 03:02:23 +00:00
SEC-3120: Remove .and() from httpStrictTransportSecurity() doc
This commit is contained in:
parent
8d9b06afb4
commit
af2a431f23
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user