Skip to content
This repository has been archived by the owner on Jun 24, 2019. It is now read-only.

用fetch请求的时候出现network request failed #12

Open
FEliuyg opened this issue Apr 27, 2017 · 1 comment
Open

用fetch请求的时候出现network request failed #12

FEliuyg opened this issue Apr 27, 2017 · 1 comment

Comments

@FEliuyg
Copy link

FEliuyg commented Apr 27, 2017

新创建一个项目,用fetch发起请求的时候出现network request failed。查询说是iOS9引入了新特性App Transport Security (ATS)。默认是HTTPS请求,屏蔽了HTTP请求。按照google到的解决办法,修改Info.plist文件,但还是没有成功。请问有什么解决办法吗?

@wangdicoder
Copy link
Owner

我就是修改那个plist文件的,你可以对照我那个文件,看看是怎么改的

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants