interface ContentTypeOptionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnResponseHeadersPolicyPropsMixin.ContentTypeOptionsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnResponseHeadersPolicyPropsMixin_ContentTypeOptionsProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.ContentTypeOptionsProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnResponseHeadersPolicyPropsMixin.ContentTypeOptionsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnResponseHeadersPolicyPropsMixin » ContentTypeOptionsProperty |
Determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff .
For more information about the X-Content-Type-Options HTTP response header, see X-Content-Type-Options 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 { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const contentTypeOptionsProperty: cloudfront_mixins.CfnResponseHeadersPolicyPropsMixin.ContentTypeOptionsProperty = {
override: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| override? | boolean | IResolvable | A Boolean that determines whether CloudFront overrides the X-Content-Type-Options HTTP response header received from the origin with the one specified in this response headers policy. |
override?
Type:
boolean | IResolvable
(optional)
A Boolean that determines whether CloudFront overrides the X-Content-Type-Options HTTP response header received from the origin with the one specified in this response headers policy.

.NET
Go
Java
Python
TypeScript