Class SignalRCorsSettings
java.lang.Object
com.azure.resourcemanager.signalr.models.SignalRCorsSettings
Cross-Origin Resource Sharing (CORS) settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet 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.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).
-
Constructor Details
-
SignalRCorsSettings
public SignalRCorsSettings()Creates an instance of SignalRCorsSettings class.
-
-
Method Details
-
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.
-
withAllowedOrigins
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-