I wish I could protect my application from MITM attacks over HTTPS, I know I can use HPKP to protect the application.
Is it possible to do this from react-native?
I wish I could protect my application from MITM attacks over HTTPS, I know I can use HPKP to protect the application.
Is it possible to do this from react-native?
There is a package that seems to implement certificate pinning: https://github.com/localz/react-native-pinch. I haven't used it too extensively so I cannot comment on how convenient it is.
There's also a long write-up at How can I implement SSL Certificate Pinning while using React Native that walks you through implementing this yourself, based in part on https://github.com/Kudo/react-native-ssl-pinning-proposal.