in cordova-plugin-whitelist/src/ubuntu/whitelist.cpp [23:30]
void Whitelist::URLMatchesPatterns(int scId, int ecId, const QString &url, const QList<QString> &patterns) {
CordovaInternal::WhiteList whitelist;
for (const QString &pattern: patterns) {
whitelist.addWhiteListEntry(pattern, false);
}
bool isAllowed = whitelist.isUrlWhiteListed(url);
cb(scId, isAllowed);
}