SignalRCorsSettings Class
- java.
lang. Object - com.
azure. resourcemanager. signalr. models. SignalRCorsSettings
- com.
public final class SignalRCorsSettings
Cross-Origin Resource Sharing (CORS) settings.
Constructor Summary
Constructor | Description |
---|---|
SignalRCorsSettings() |
Creates an instance of Signal |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
allowedOrigins()
Get the allowed |
void |
validate()
Validates the instance. |
Signal |
withAllowedOrigins(List<String> allowedOrigins)
Set the allowed |
Methods inherited from java.lang.Object
Constructor Details
SignalRCorsSettings
public SignalRCorsSettings()
Creates an instance of SignalRCorsSettings class.
Method Details
allowedOrigins
public List
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:
validate
public void validate()
Validates the instance.
withAllowedOrigins
public SignalRCorsSettings withAllowedOrigins(List
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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for