In your info.plist(cd ios/app name/info.plist), change this code
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
to this
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
Also you might wanna clean your build, in Xcode you can use shortcut keys.. shift + command + k or click product from top menu then clean build folder in the dropdown
Top comments (0)