Secure Property  
 

Sets or returns whether secure HTTPS connections are required.

Syntax

object.Secure [= { True | False } ]

Remarks

The Secure property specifies whether the control should require the use of a secure HTTPS connection when communicating with the provider. When this property is True, the control will only connect using secure HTTPS connections.

The default value of this property is False. However, this does not prevent the control from using secure connections. Most cloud-based providers require HTTPS connections and the control will automatically use a secure connection when required by the selected provider.

This property is primarily useful when working with locally hosted providers such as LM Studio or Ollama, where both secure and insecure connections may be available. Setting this property to True forces the client to use HTTPS even when the provider does not explicitly require it. If the provider or endpoint does not support secure connections, attempts to connect with this property enabled will fail.

Secure connections use TLS encryption provided by the Windows Schannel security provider, including support for strong encryption algorithms such as AES-256 when available. On modern Windows platforms, the control will use TLS 1.3 connections when available and fall back to TLS 1.2 on older systems which do not support newer protocol versions.

Data Type

Boolean

See Also

Options Property, ProviderFlags Property, Connect Method