Class CfnResponseHeadersPolicy.FrameOptionsProperty
Determines whether CloudFront includes the X-Frame-Options
HTTP response header and the header's value.
Inheritance
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.AWS.CloudFront.dll
Syntax (csharp)
public class FrameOptionsProperty : Object, CfnResponseHeadersPolicy.IFrameOptionsProperty
Syntax (vb)
Public Class FrameOptionsProperty
Inherits Object
Implements CfnResponseHeadersPolicy.IFrameOptionsProperty
Remarks
For more information about the X-Frame-Options
HTTP response header, see X-Frame-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 frameOptionsProperty = new FrameOptionsProperty {
FrameOption = "frameOption",
Override = false
};
Synopsis
Constructors
FrameOptionsProperty() |
Properties
FrameOption | The value of the |
Override | A Boolean that determines whether CloudFront overrides the |
Constructors
FrameOptionsProperty()
public FrameOptionsProperty()
Properties
FrameOption
The value of the X-Frame-Options
HTTP response header. Valid values are DENY
and SAMEORIGIN
.
public string FrameOption { get; set; }
Property Value
System.String
Remarks
For more information about these values, see X-Frame-Options in the MDN Web Docs.
Override
A Boolean that determines whether CloudFront overrides the X-Frame-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