From 0ecdd0e85633f45b07797d2bf8ed426a5d455c3a Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 29 Oct 2015 15:10:16 -0500 Subject: [PATCH] SEC-3120: Reference hsts() -> httpStrictTransportSecurity() --- docs/manual/src/docs/asciidoc/index.adoc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/manual/src/docs/asciidoc/index.adoc b/docs/manual/src/docs/asciidoc/index.adoc index c454e251bf..4d949eba63 100644 --- a/docs/manual/src/docs/asciidoc/index.adoc +++ b/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(); + } } ----