Add patch for Cordova/PhoneGap Advanced HTTP Plugin

This commit is contained in:
Tim Perry
2023-10-17 16:20:10 +02:00
parent e8bb2a160b
commit 385f6368f8
+17
View File
@@ -297,6 +297,23 @@ const PINNING_FIXES = {
}
],
// --- Cordova / PhoneGap Advanced HTTP Plugin (https://github.com/silkimen/cordova-plugin-advanced-http)
// Modern version:
'com.silkimen.cordovahttp.CordovaServerTrust': [
{
methodName: '$init',
replacement: () => function () {
// Ignore any attempts to set trust to 'pinned'. Default settings will trust
// our cert because of the separate system-certificate injection step.
if (arguments[0] === 'pinned') {
arguments[0] = 'default';
}
return this.$init(...arguments);
}
}
],
// --- Apache Cordova WebViewClient
'org.apache.cordova.CordovaWebViewClient': [