public WebSocketServiceBuilder allowedOrigin(Predicate<? super String> predicate) {
        checkState(allowedOrigins == null, "allowedOrigins and originPredicate are mutually exclusive.");
        originPredicate = requireNonNull(predicate, "predicate");
        return this;
    }
Sets the predicate that evaluates whether an origin is allowed. The same-origin is allowed by default.

@see <a href="https://datatracker.ietf.org/doc/html/rfc6455#section-10.2">Origin Considerations</a>
core/src/main/java/com/linecorp/armeria/server/websocket/WebSocketServiceBuilder.java