问题描述
我有公共服务网址 https://iscode.scitanie.sk/databank-api/?text=Tre
我们在 web 和 android 应用程序中使用它没有问题,但 iOS 失败了 App Transport Security policy requires the use of a secure connection
而显然重定向到 http NSErrorFailingURLStringKey=http://iscode.scitanie.sk/databank-api/?text=Tre
有什么方法可以查看重定向是如何发生的以及为什么?我不知道如何调试它。当我把它放到 chrome 并查看网络时,一切看起来都很好。
我尝试使用 Alamofire
和 Networking
库,两者都只是 iOS 标准 api 的包装器。
不知道该尝试什么。我们不应该使用 http,因此不允许任意加载。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)