Class CfnResponseHeadersPolicy.ContentTypeOptionsProperty
Determines whether CloudFront includes the X-Content-Type-Options
HTTP response header with its value set to nosniff
.
Inheritance
System.Object
CfnResponseHeadersPolicy.ContentTypeOptionsProperty
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ContentTypeOptionsProperty : Object, CfnResponseHeadersPolicy.IContentTypeOptionsProperty
Syntax (vb)
Public Class ContentTypeOptionsProperty
Inherits Object
Implements CfnResponseHeadersPolicy.IContentTypeOptionsProperty
Remarks
For more information about the X-Content-Type-Options
HTTP response header, see X-Content-Type-Options in the MDN Web Docs.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var contentTypeOptionsProperty = new ContentTypeOptionsProperty {
Override = false
};
Synopsis
Constructors
ContentTypeOptionsProperty() |
Properties
Override | A Boolean that determines whether CloudFront overrides the |
Constructors
ContentTypeOptionsProperty()
public ContentTypeOptionsProperty()
Properties
Override
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.
public object Override { get; set; }
Property Value
System.Object