6

seems there's no way in react-native to disable SSL verification during fetch() call. Someone mentioned here that rn-fetch-blob can achieve this, but as one of the comments alludes to - Expo isn't compatible with rn-fetch-blob (and building an APK, then sending to device would make development painful). Any solutions folks have used here?

Note - similar question here but I'm querying a public domain (strengthlevel.com) so don't have control over certs or protocol.

Danny
  • 181
  • 1
  • 14

1 Answers1

0

In recent Expo, you can use tunneling to achieve SSL traffic via an unsecured connection (Expo Documentation on tuneling):

"To enable tunneling, first install @expo/ngrok:"

npm i -g @expo/ngrok

"Then run the following to start your dev server from a tunnel URL:"

npx expo start --tunnel
Sean Blonien
  • 387
  • 3
  • 5