class Aws::SecurityHub::Types::AwsCorsConfiguration
Contains the cross-origin resource sharing (CORS) configuration for the API. CORS is only supported for HTTP APIs.
@note When making an API call, you may pass AwsCorsConfiguration
data as a hash: { allow_origins: ["NonEmptyString"], allow_credentials: false, expose_headers: ["NonEmptyString"], max_age: 1, allow_methods: ["NonEmptyString"], allow_headers: ["NonEmptyString"], }
@!attribute [rw] allow_origins
The allowed origins for CORS requests. @return [Array<String>]
@!attribute [rw] allow_credentials
Indicates whether the CORS request includes credentials. @return [Boolean]
@!attribute [rw] expose_headers
The exposed headers for CORS requests. @return [Array<String>]
@!attribute [rw] max_age
The number of seconds for which the browser caches preflight request results. @return [Integer]
@!attribute [rw] allow_methods
The allowed methods for CORS requests. @return [Array<String>]
@!attribute [rw] allow_headers
The allowed headers for CORS requests. @return [Array<String>]
@see docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsCorsConfiguration AWS API Documentation
Constants
- SENSITIVE