'React native WebView requests SSL pinning on IOS

I am trying to apply SSL pinning on my react native application,my app is a wrapper for a SPA application.

I am using 'Charles' to test it and running on an iphone simulator.

For some reason I can't get it to work since I can see the package payload

What I have tried was to add the cert file to the root iOS directory, from what I understand that should just work.

I tried install react native SSL pinning library

I tried adding the domain in the pliat file

Any ideas on how to implement this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source