Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ResponseHeadersPolicyXSSProtection = ResponseHeadersPolicyXSSProtection' {}
- newResponseHeadersPolicyXSSProtection :: Bool -> Bool -> ResponseHeadersPolicyXSSProtection
- responseHeadersPolicyXSSProtection_modeBlock :: Lens' ResponseHeadersPolicyXSSProtection (Maybe Bool)
- responseHeadersPolicyXSSProtection_reportUri :: Lens' ResponseHeadersPolicyXSSProtection (Maybe Text)
- responseHeadersPolicyXSSProtection_override :: Lens' ResponseHeadersPolicyXSSProtection Bool
- responseHeadersPolicyXSSProtection_protection :: Lens' ResponseHeadersPolicyXSSProtection Bool
Documentation
data ResponseHeadersPolicyXSSProtection Source #
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.
See: newResponseHeadersPolicyXSSProtection
smart constructor.
ResponseHeadersPolicyXSSProtection' | |
|
Instances
newResponseHeadersPolicyXSSProtection Source #
Create a value of ResponseHeadersPolicyXSSProtection
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:modeBlock:ResponseHeadersPolicyXSSProtection'
, responseHeadersPolicyXSSProtection_modeBlock
- A Boolean that determines whether CloudFront includes the mode=block
directive in the X-XSS-Protection
header.
For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
$sel:reportUri:ResponseHeadersPolicyXSSProtection'
, responseHeadersPolicyXSSProtection_reportUri
- A reporting URI, which CloudFront uses as the value of the report
directive in the X-XSS-Protection
header.
You cannot specify a ReportUri
when ModeBlock
is true
.
For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.
$sel:override:ResponseHeadersPolicyXSSProtection'
, responseHeadersPolicyXSSProtection_override
- A Boolean that determines whether CloudFront overrides the
X-XSS-Protection
HTTP response header received from the origin with
the one specified in this response headers policy.
$sel:protection:ResponseHeadersPolicyXSSProtection'
, responseHeadersPolicyXSSProtection_protection
- A Boolean that determines the value of the X-XSS-Protection
HTTP
response header. When this setting is true
, the value of the
X-XSS-Protection
header is 1
. When this setting is false
, the
value of the X-XSS-Protection
header is 0
.
For more information about these settings, see X-XSS-Protection in the MDN Web Docs.
responseHeadersPolicyXSSProtection_modeBlock :: Lens' ResponseHeadersPolicyXSSProtection (Maybe Bool) Source #
A Boolean that determines whether CloudFront includes the mode=block
directive in the X-XSS-Protection
header.
For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
responseHeadersPolicyXSSProtection_reportUri :: Lens' ResponseHeadersPolicyXSSProtection (Maybe Text) Source #
A reporting URI, which CloudFront uses as the value of the report
directive in the X-XSS-Protection
header.
You cannot specify a ReportUri
when ModeBlock
is true
.
For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.
responseHeadersPolicyXSSProtection_override :: Lens' ResponseHeadersPolicyXSSProtection Bool Source #
A Boolean that determines whether CloudFront overrides the
X-XSS-Protection
HTTP response header received from the origin with
the one specified in this response headers policy.
responseHeadersPolicyXSSProtection_protection :: Lens' ResponseHeadersPolicyXSSProtection Bool Source #
A Boolean that determines the value of the X-XSS-Protection
HTTP
response header. When this setting is true
, the value of the
X-XSS-Protection
header is 1
. When this setting is false
, the
value of the X-XSS-Protection
header is 0
.
For more information about these settings, see X-XSS-Protection in the MDN Web Docs.