Table of Contents

TWebSocketMiddleware.AllowedOrigins Property

The list of request origins allowed to open a WebSocket connection.

Remarks

Each item must be a full origin, for example https://www.example.com. When the list is empty (the default) or contains a single * item, WebSocket requests from any origin are accepted. Otherwise, requests whose Origin header is not in the list are answered with a 403 status code.

Syntax

Unit: Sparkle.Middleware.WebSocket

property TWebSocketMiddleware.AllowedOrigins: TStrings

See also