Interface CfnResponseHeadersPolicy.IFrameOptionsProperty
Determines whether CloudFront includes the X-Frame-Options
HTTP response header and the header's value.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnResponseHeadersPolicy.IFrameOptionsProperty
Syntax (vb)
Public Interface 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
Properties
FrameOption | The value of the |
Override | A Boolean that determines whether CloudFront overrides the |
Properties
FrameOption
The value of the X-Frame-Options
HTTP response header. Valid values are DENY
and SAMEORIGIN
.
string FrameOption { get; }
Property Value
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.
object Override { get; }