code: function isInTrustyOrigins(url, trustyOrigins) {
    const len = trustyOrigins.length;
    for (let i = 0; i < len; i++) {
      if (trustyOrigins[i] === '*') {
        return true;
      }
      if (isSameOrigin(trustyOrigins[i], url)) {
        return true;
      }
    }
    return false;
  }
docs: Check if the URL is included in the trusty origin array.
  If there is an asterisk (*) in the trusty origin array, it will
  always return true.
  @param {string} url - URL string
  @param {string[]} trustyOrigins - trusty origin array
  @returns {boolean}