Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native network request failed fetch

// Add this to info.plist

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

// Add this to AndroidManifest.xml
<application android:usesCleartextTraffic="true">
</application>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #network #request #failed #fetch
ADD COMMENT
Topic
Name
1+7 =