forked from facebook/react-native-website
-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用fetch访问http网页报TypeError: Network request failed错误 #99
Comments
expo的麻烦就在于你不能更改原生配置,只能等官方发布新版本 |
鱼和熊掌不可兼得?看来expo还不是很完美,还是用react-native init吧 |
|
你的理解还是错误的, |
明白了 谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我使用expo构建项目,
android虚拟机版本10,
文档中提到了
**默认情况下,iOS 会阻止所有 http 的请求,以督促开发者使用 https。如果你仍然需要使用 http 协议,那么首先需要添加一个 App Transport Security 的例外,详细可参考这篇帖子。
从 Android9 开始,也会默认阻止 http 请求,请参考相关配置**
我根据官方提供的文档https://blog.csdn.net/qq_40347548/article/details/86766932想对android进行配置,但在expo的目录下没发现相关的文件夹(如下图)
请问我该如何配置android端。
这是我的代码:
报错信息:
The text was updated successfully, but these errors were encountered: