aws-cdk-lib.aws_cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty

interface ReferrerPolicyProperty

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CfnResponseHeadersPolicy.ReferrerPolicyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnResponseHeadersPolicy_ReferrerPolicyProperty
Javasoftware.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty
Pythonaws_cdk.aws_cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty
TypeScript aws-cdk-lib » aws_cloudfront » CfnResponseHeadersPolicy » ReferrerPolicyProperty

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

// 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

NameTypeDescription
overrideboolean | IResolvableA 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.
referrerPolicystringThe value of the Referrer-Policy HTTP response header. Valid values are:.

override

Type: boolean | IResolvable

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.


referrerPolicy

Type: string

The value of the Referrer-Policy HTTP response header. Valid values are:.

  • no-referrer
  • no-referrer-when-downgrade
  • origin
  • origin-when-cross-origin
  • same-origin
  • strict-origin
  • strict-origin-when-cross-origin
  • unsafe-url

For more information about these values, see Referrer-Policy in the MDN Web Docs.