|
@@ -3510,17 +3510,15 @@ 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()
|
|
|
|
- .frameOptions()
|
|
|
|
- .sameOrigin()
|
|
|
|
- .and()
|
|
|
|
- .httpStrictTransportSecurity().disable();
|
|
|
|
|
|
+ // ...
|
|
|
|
+ .headers()
|
|
|
|
+ .frameOptions().sameOrigin()
|
|
|
|
+ .httpStrictTransportSecurity().disable();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
----
|
|
----
|