code: function(url) {
    if (!allowedResources) {
      return true;
    }
    for (var i=0; i<allowedResources.length; i++) {
      var allow = allowedResources[i];
      var index = url.indexOf(allow);
      if (index == 0) {
        return true;
      }
    }
    return false;
  }
docs: Resource listing