OptionalallowedOptionalallowedRestrict accepted WebSocket Origin values. When omitted, Origin is not enforced by default.
OptionalmaxMaximum accepted request body size based on Content-Length. Requests above the limit are rejected before the body is read.
OptionalmaxMaximum accepted WebSocket message size in bytes. Passed to ws as maxPayload.
OptionaltrustTrust the incoming Host header when constructing event.url/request.url. Disabled by default to avoid host header poisoning in absolute URL generation.
Restrict trusted Host values when trustHostHeader is enabled.