Skip to content

Commit 7a63a03

Browse files
committed
- Added back certificate option
1 parent f31812a commit 7a63a03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

https.ios.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

https.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ policies.def.validatesDomainName = false;
2323
export function enableSSLPinning(options: Https.HttpsSSLPinningOptions) {
2424
// console.log('options', options)
2525
if (!policies.secure) {
26-
policies.secure = AFSecurityPolicy.policyWithPinningMode(AFSSLPinningMode.PublicKey);
26+
policies.secure = AFSecurityPolicy.policyWithPinningMode(AFSSLPinningMode.Certificate);
2727
let allowInvalidCertificates = (isDefined(options.allowInvalidCertificates)) ? options.allowInvalidCertificates : false;
2828
policies.secure.allowInvalidCertificates = allowInvalidCertificates;
2929
let validatesDomainName = (isDefined(options.validatesDomainName)) ? options.validatesDomainName : true;

0 commit comments

Comments
 (0)