ios - React Native App Transport Security 已阻止
问题描述
我刚刚安装了 react-native-image-crop。当我尝试在实际的 iPhone 上拍照时,我收到了一个非常奇怪的错误。'App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.'
. 这是因为我使用了地铁建设者吗?或者别的什么?
我的信息列表:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
解决方案
推荐阅读
- python - 在 Django 中从 IoT 获取发布值
- windows - C++如何获取windows文件夹显示顺序
- arrays - 使用C中的数组将整数输入转换为数字
- java - 在 Android Studio 4.1 中使用 Tensorflow lite 元数据时构建失败
- python - 给定一个字符串,如果字符串中“x”的第一个实例紧跟另一个“x”,则返回true
- azure-active-directory - “具有个人帐户的多租户”应用程序类型需要 Azure AD 用户分配
- c - 为什么即使我在while上创建变量,循环while也不在每个循环之后创建新的?
- python-3.x - 如何使用 Python 3 + 更快地遍历范围至少为 2 位 (10) 到 1000 位 (10^100) 的循环?
- python - 断言列表中的所有项目都满足 Python 中的条件
- javascript - 未捕获的语法错误:意外的标记“如果”