SignalRCorsSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.signalr.models.SignalRCorsSettings

public final class SignalRCorsSettings

Cross-Origin Resource Sharing (CORS) settings.

Constructor Summary

Constructor Description
SignalRCorsSettings()

Creates an instance of SignalRCorsSettings class.

Method Summary

Modifier and Type Method and Description
List<String> allowedOrigins()

Get the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345).

void validate()

Validates the instance.

SignalRCorsSettings withAllowedOrigins(List<String> allowedOrigins)

Set the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345).

Methods inherited from java.lang.Object

Constructor Details

SignalRCorsSettings

public SignalRCorsSettings()

Creates an instance of SignalRCorsSettings class.

Method Details

allowedOrigins

public List allowedOrigins()

Get the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. If omitted, allow all by default.

Returns:

the allowedOrigins value.

validate

public void validate()

Validates the instance.

withAllowedOrigins

public SignalRCorsSettings withAllowedOrigins(List allowedOrigins)

Set the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. If omitted, allow all by default.

Parameters:

allowedOrigins - the allowedOrigins value to set.

Returns:

the SignalRCorsSettings object itself.

Applies to