Browse Source

SEC-3120: Reference hsts() -> httpStrictTransportSecurity()

Rob Winch 9 years ago
parent
commit
0ecdd0e856
1 changed files with 10 additions and 10 deletions
  1. 10 10
      docs/manual/src/docs/asciidoc/index.adoc

+ 10 - 10
docs/manual/src/docs/asciidoc/index.adoc

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