Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore self-signed SSL certificate in fetch

I'm using fetch in a react-native app, and charles proxy to debug my network requests. In order to use charles with SSL, I need to configure fetch to accept a self-signed certificate generated by charles.

How do I tell fetch to ignore errors from self-signed certificates when using https?

like image 285
emmby Avatar asked Nov 08 '22 14:11

emmby


1 Answers

I fixed this by setting up the SSL certificates in the simulator: Help > SSL Proxying > Install Charles Root Certificate in iOS Simulators) in charles and be happy!

Thanks https://stackoverflow.com/a/35047215/82156

like image 100
emmby Avatar answered Nov 14 '22 22:11

emmby