ReferrerPolicyProperty Struct
Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header's value.
For more information about the Referrer-Policy HTTP response header, see Referrer-Policy in the MDN Web Docs.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const referrerPolicyProperty: cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty = {
override: false,
referrerPolicy: 'referrerPolicy',
};
Properties
overrideboolean | IResolvableoverridetyping.Union[bool, IResolvable]overrideBooleanOverrideboolOverrideinterface{}required#A Boolean that determines whether CloudFront overrides the `Referrer-Policy` HTTP response header received from the origin with the one specified in this response headers policy.
referrerPolicystringreferrer_policystrreferrerPolicyStringReferrerPolicystringReferrerPolicy*stringrequired#The value of the `Referrer-Policy` HTTP response header. Valid values are:.
notes
no-referrerno-referrer-when-downgradeoriginorigin-when-cross-originsame-originstrict-originstrict-origin-when-cross-originunsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.