Class: Aws::CloudFront::Types::ResponseHeadersPolicyFrameOptions

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-cloudfront/types.rb

Overview

Note:

When making an API call, you may pass ResponseHeadersPolicyFrameOptions data as a hash:

{
  override: false, # required
  frame_option: "DENY", # required, accepts DENY, SAMEORIGIN
}

Determines whether CloudFront includes the `X-Frame-Options` HTTP response header and the header’s value.

For more information about the `X-Frame-Options` HTTP response header, see [X-Frame-Options] in the MDN Web Docs.

[1]: developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#frame_optionString

The value of the `X-Frame-Options` HTTP response header. Valid values are `DENY` and `SAMEORIGIN`.

For more information about these values, see [X-Frame-Options] in the MDN Web Docs.

[1]: developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

Returns:

  • (String)

12046
12047
12048
12049
12050
12051
# File 'lib/aws-sdk-cloudfront/types.rb', line 12046

class ResponseHeadersPolicyFrameOptions < Struct.new(
  :override,
  :frame_option)
  SENSITIVE = []
  include Aws::Structure
end

#overrideBoolean

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.

Returns:

  • (Boolean)

12046
12047
12048
12049
12050
12051
# File 'lib/aws-sdk-cloudfront/types.rb', line 12046

class ResponseHeadersPolicyFrameOptions < Struct.new(
  :override,
  :frame_option)
  SENSITIVE = []
  include Aws::Structure
end