/** * Configures x-xss-protection response header. * @return the {@link XssProtectionSpec} to configure */ public XssProtectionSpec xssProtection() { return new XssProtectionSpec(); }
@Test public void headersWhenXssProtectionDisableThenXssProtectionNotWritten() { expectHeaderNamesNotPresent("X-Xss-Protection"); this.headers.xssProtection().disable(); assertHeaders(); }
/** * Configures x-xss-protection response header. * @return the {@link XssProtectionSpec} to configure */ public XssProtectionSpec xssProtection() { return new XssProtectionSpec(); }
/** * Configures x-xss-protection response header. * @return the {@link XssProtectionSpec} to configure */ public XssProtectionSpec xssProtection() { return new XssProtectionSpec(); }