Interface CfnResponseHeadersPolicy.XSSProtectionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicy.XSSProtectionProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicy
@Stability(Stable)
public static interface CfnResponseHeadersPolicy.XSSProtectionProperty
extends software.amazon.jsii.JsiiSerializable
Determines whether CloudFront includes the
X-XSS-Protection
HTTP response header and the header's value.
For more information about the X-XSS-Protection
HTTP response header, see X-XSS-Protection in the MDN Web Docs.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cloudfront.*; XSSProtectionProperty xSSProtectionProperty = XSSProtectionProperty.builder() .override(false) .protection(false) // the properties below are optional .modeBlock(false) .reportUri("reportUri") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnResponseHeadersPolicy.XSSProtectionProperty
static final class
An implementation forCfnResponseHeadersPolicy.XSSProtectionProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
A Boolean that determines whether CloudFront includes themode=block
directive in theX-XSS-Protection
header.A Boolean that determines whether CloudFront overrides theX-XSS-Protection
HTTP response header received from the origin with the one specified in this response headers policy.A Boolean that determines the value of theX-XSS-Protection
HTTP response header.default String
A reporting URI, which CloudFront uses as the value of thereport
directive in theX-XSS-Protection
header.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOverride
A Boolean that determines whether CloudFront overrides theX-XSS-Protection
HTTP response header received from the origin with the one specified in this response headers policy. -
getProtection
A Boolean that determines the value of theX-XSS-Protection
HTTP response header.When this setting is
true
, the value of theX-XSS-Protection
header is1
. When this setting isfalse
, the value of theX-XSS-Protection
header is0
.For more information about these settings, see X-XSS-Protection in the MDN Web Docs.
-
getModeBlock
A Boolean that determines whether CloudFront includes themode=block
directive in theX-XSS-Protection
header.For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
-
getReportUri
A reporting URI, which CloudFront uses as the value of thereport
directive in theX-XSS-Protection
header.You cannot specify a
ReportUri
whenModeBlock
istrue
.For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.
-
builder
-