From e0cad0d6840abb21578d296a33689111cbb785e3 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 15 Aug 2013 16:52:58 -0500 Subject: [PATCH] SEC-2230: Fix Header tests --- .../config/annotation/web/configurers/HeadersConfigurer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/configurers/HeadersConfigurer.java b/config/src/main/java/org/springframework/security/config/annotation/web/configurers/HeadersConfigurer.java index b58d5a3430..fb4cfda84b 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/web/configurers/HeadersConfigurer.java +++ b/config/src/main/java/org/springframework/security/config/annotation/web/configurers/HeadersConfigurer.java @@ -71,7 +71,7 @@ public final class HeadersConfigurer> extends A * @return the {@link HeadersConfigurer} for additional customizations */ public HeadersConfigurer xssProtection() { - return addHeaderWriter(new XContentTypeOptionsHeaderWriter()); + return addHeaderWriter(new XXssProtectionHeaderWriter()); } /**