Pārlūkot izejas kodu

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

Rob Winch 9 gadi atpakaļ
vecāks
revīzija
af2a431f23
1 mainītis faili ar 5 papildinājumiem un 7 dzēšanām
  1. 5 7
      docs/manual/src/docs/asciidoc/index.adoc

+ 5 - 7
docs/manual/src/docs/asciidoc/index.adoc

@@ -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();
 	}
 	}
 }
 }
 ----
 ----