Skip to content

Commit 6621b9a

Browse files
committed
- Switching policy to certificate
1 parent 1983114 commit 6621b9a

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
@@ -21,7 +21,7 @@ policies.def.validatesDomainName = false;
2121
export function enableSSLPinning(options: Https.HttpsSSLPinningOptions) {
2222
// console.log('options', options)
2323
if (!policies.secure) {
24-
policies.secure = AFSecurityPolicy.policyWithPinningMode(AFSSLPinningMode.PublicKey);
24+
policies.secure = AFSecurityPolicy.policyWithPinningMode(AFSSLPinningMode.Certificate);
2525
let allowInvalidCertificates = (isDefined(options.allowInvalidCertificates)) ? options.allowInvalidCertificates : false;
2626
policies.secure.allowInvalidCertificates = allowInvalidCertificates;
2727
let validatesDomainName = (isDefined(options.validatesDomainName)) ? options.validatesDomainName : true;

0 commit comments

Comments
 (0)