Interface CfnResponseHeadersPolicy.IContentTypeOptionsProperty
Determines whether CloudFront includes the X-Content-Type-Options
HTTP response header with its value set to nosniff
.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IContentTypeOptionsProperty
Syntax (vb)
Public Interface 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
Properties
Override | A Boolean that determines whether CloudFront overrides the |
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.
object Override { get; }
Property Value
System.Object