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
- Struct
- Aws::SecurityHub::Types::AwsCorsConfiguration
- Defined in:
- (unknown)
Overview
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
-
#allow_credentials ⇒ Boolean
Indicates whether the CORS request includes credentials.
-
#allow_headers ⇒ Array<String>
The allowed headers for CORS requests.
-
#allow_methods ⇒ Array<String>
The allowed methods for CORS requests.
-
#allow_origins ⇒ Array<String>
The allowed origins for CORS requests.
-
#expose_headers ⇒ Array<String>
The exposed headers for CORS requests.
-
#max_age ⇒ Integer
The number of seconds for which the browser caches preflight request results.
Instance Attribute Details
#allow_credentials ⇒ Boolean
Indicates whether the CORS request includes credentials.
#allow_headers ⇒ Array<String>
The allowed headers for CORS requests.
#allow_methods ⇒ Array<String>
The allowed methods for CORS requests.
#allow_origins ⇒ Array<String>
The allowed origins for CORS requests.
#expose_headers ⇒ Array<String>
The exposed headers for CORS requests.
#max_age ⇒ Integer
The number of seconds for which the browser caches preflight request results.