class Azure::Web::Mgmt::V2020_09_01::Models::CorsSettings
Cross-Origin Resource
Sharing (CORS) settings for the app.
Attributes
allowed_origins[RW]
@return [Array<String>] Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: example.com:12345). Use “*” to allow all.
support_credentials[RW]
@return [Boolean] Gets or sets whether CORS requests with credentials are allowed. See developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials for more details.
Private Class Methods
mapper()
click to toggle source
Mapper for CorsSettings
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-09-01/generated/azure_mgmt_web/models/cors_settings.rb, line 31 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CorsSettings', type: { name: 'Composite', class_name: 'CorsSettings', model_properties: { allowed_origins: { client_side_validation: true, required: false, serialized_name: 'allowedOrigins', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, support_credentials: { client_side_validation: true, required: false, serialized_name: 'supportCredentials', type: { name: 'Boolean' } } } } } end