public static boolean isDifferentOrigin(DiscFilterRequest request) {
        try {
            String origin = request.getHeader("Origin");
            if (origin != null && !URI.create(origin).getHost().equals(request.getServerName()))
                return true;
        } catch (RuntimeException ignored) { }
        return false;
    }
Helper methods for auth0/okta request filters.

@author valerijf
container-core/src/main/java/com/yahoo/jdisc/http/filter/util/FilterUtils.java