Interface CfnResponseHeadersPolicy.XSSProtectionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicy.XSSProtectionProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicy
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnResponseHeadersPolicy.XSSProtectionPropertystatic final classAn implementation forCfnResponseHeadersPolicy.XSSProtectionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA Boolean that determines whether CloudFront includes themode=blockdirective in theX-XSS-Protectionheader.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.A 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
-
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:
-
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:
-
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
-