private boolean originIsAllowed(ApiRequest request) {
        String origin = request.getHeaders().get("Origin").trim();
        return allowedCorsOrigins.contains(origin);
    }
Check if the origin of the request is in the list of allows cors origins.

@param request the ApiRequest
@return true if the origin is allowed, else false
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/http/HttpPolicyAdapter.java