فهرست منبع

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

Rob Winch 9 سال پیش
والد
کامیت
af2a431f23
1فایلهای تغییر یافته به همراه5 افزوده شده و 7 حذف شده
  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
 public class WebSecurityConfig extends
-WebSecurityConfigurerAdapter {
+		WebSecurityConfigurerAdapter {
 
 	@Override
 	protected void configure(HttpSecurity http) throws Exception {
 		http
-		// ...
-		.headers()
-			.frameOptions()
-				.sameOrigin()
-				.and()
-			.httpStrictTransportSecurity().disable();
+			// ...
+			.headers()
+				.frameOptions().sameOrigin()
+				.httpStrictTransportSecurity().disable();
 	}
 }
 ----