You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::SecurityHub::Types::AwsCorsConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing AwsCorsConfiguration as input to an Aws::Client method, you can use a vanilla Hash:

{
  allow_origins: ["NonEmptyString"],
  allow_credentials: false,
  expose_headers: ["NonEmptyString"],
  max_age: 1,
  allow_methods: ["NonEmptyString"],
  allow_headers: ["NonEmptyString"],
}

Contains the cross-origin resource sharing (CORS) configuration for the API. CORS is only supported for HTTP APIs.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#allow_credentialsBoolean

Indicates whether the CORS request includes credentials.

Returns:

  • (Boolean)

    Indicates whether the CORS request includes credentials.

#allow_headersArray<String>

The allowed headers for CORS requests.

Returns:

  • (Array<String>)

    The allowed headers for CORS requests.

#allow_methodsArray<String>

The allowed methods for CORS requests.

Returns:

  • (Array<String>)

    The allowed methods for CORS requests.

#allow_originsArray<String>

The allowed origins for CORS requests.

Returns:

  • (Array<String>)

    The allowed origins for CORS requests.

#expose_headersArray<String>

The exposed headers for CORS requests.

Returns:

  • (Array<String>)

    The exposed headers for CORS requests.

#max_ageInteger

The number of seconds for which the browser caches preflight request results.

Returns:

  • (Integer)

    The number of seconds for which the browser caches preflight request results.