Interface CfnResponseHeadersPolicyPropsMixin.XSSProtectionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicyPropsMixin.XSSProtectionProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicyPropsMixin
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.cfnpropertymixins.services.cloudfront.*;
XSSProtectionProperty xSSProtectionProperty = XSSProtectionProperty.builder()
.modeBlock(false)
.override(false)
.protection(false)
.reportUri("reportUri")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnResponseHeadersPolicyPropsMixin.XSSProtectionPropertystatic final classAn implementation forCfnResponseHeadersPolicyPropsMixin.XSSProtectionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA Boolean that determines whether CloudFront includes themode=blockdirective in theX-XSS-Protectionheader.default ObjectA Boolean that determines whether CloudFront overrides theX-XSS-ProtectionHTTP response header received from the origin with the one specified in this response headers policy.default ObjectA Boolean that determines the value of theX-XSS-ProtectionHTTP response header.default StringA reporting URI, which CloudFront uses as the value of thereportdirective in theX-XSS-Protectionheader.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getModeBlock
A Boolean that determines whether CloudFront includes themode=blockdirective in theX-XSS-Protectionheader.For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
Returns union: either
BooleanorIResolvable- See Also:
-
getOverride
A Boolean that determines whether CloudFront overrides theX-XSS-ProtectionHTTP response header received from the origin with the one specified in this response headers policy.Returns union: either
BooleanorIResolvable- See Also:
-
getProtection
A Boolean that determines the value of theX-XSS-ProtectionHTTP response header.When this setting is
true, the value of theX-XSS-Protectionheader is1. When this setting isfalse, the value of theX-XSS-Protectionheader is0.For more information about these settings, see X-XSS-Protection in the MDN Web Docs.
Returns union: either
BooleanorIResolvable- See Also:
-
getReportUri
A reporting URI, which CloudFront uses as the value of thereportdirective in theX-XSS-Protectionheader.You cannot specify a
ReportUriwhenModeBlockistrue.For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.
- See Also:
-
builder
@Stability(Stable) static CfnResponseHeadersPolicyPropsMixin.XSSProtectionProperty.Builder builder()
-