由于重定向到 http,无法从 iOS 应用程序中的有效 https url 加载,而在浏览器和 android 中,https 看起来像 https 工作

问题描述

我有公共服务网址 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 并查看网络时,一切看起来都很好。

enter image description here

我尝试使用 AlamofireNetworking 库,两者都只是 iOS 标准 api 的包装器。 不知道该尝试什么。我们不应该使用 http,因此不允许任意加载。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...