react-native ios上的http网络请求问题

1. 在xcode中修改 `info.plist`

<key>NSAppTransportSecurity</key>	

<dict>
<-- 添加 Domain 忽略指定 url https 的请求 -->
<key>NSExceptionDomains</key>
<dict> <key>localhost</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> <true/> </dict> </dict>
</dict>

猜你喜欢

转载自www.cnblogs.com/zhangyahan/p/11105885.html