Class SignalRCorsSettings


  • public final class SignalRCorsSettings
    extends Object
    Cross-Origin Resource Sharing (CORS) settings.
    • Constructor Detail

      • SignalRCorsSettings

        public SignalRCorsSettings()
    • Method Detail

      • allowedOrigins

        public 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). Use "*" to allow all. If omitted, allow all by default.
        Returns:
        the allowedOrigins value.
      • withAllowedOrigins

        public 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). 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.