CloudFrontResponseHeadersPolicySchema
Index
Properties
optionalcors
The CORS headers to add. See CloudFrontCorsSchema.
optionalcustomHeaders
Headers to add that have no field of their own, e.g. Permissions-Policy.
See CloudFrontCustomHeaderSchema.
name
How a behavior names this policy. It is also the policy's name in AWS, which must be unique across the account.
optionalremoveHeaders
Names of headers to strip from the origin's response, e.g. ['Server', 'X-Powered-By']. Not
case-sensitive. With Server or Date removed, CloudFront sends its own instead.
AWS refuses connection-level headers and CloudFront's own, such as Connection,
Content-Length, Transfer-Encoding, Via, and any header starting X-Amz-Cf- or X-Edge-.
The full list.
optionalsecurityHeaders
The security headers to add. See CloudFrontSecurityHeadersSchema.
A response headers policy this distribution declares, referenced by a behavior under
{ kind: 'custom', name }. It changes the headers of every response on the way to the viewer, whether it came from the cache or the origin.CloudFront removes
removeHeadersfirst, then adds everything else, so a header both removed and added is sent with this policy's value. AWS: response headers policies.Resources/CloudFrontDistribution