Xing API SSL 错误

Xing API SSL error

我在我的 ios 应用程序中使用 the url 从 xing 请求令牌。如果我使用 NSAppTransportSecurity 异常,那么 link 正在工作。但是当我删除它时它显示 ATS 错误,即使 url 是 https。

看起来 api.xing.com 服务器不支持前向保密(参见 here), one of the requirements for ATS. Fortunately, you can add a domain exception for the xing.com domain, with the NSIncludesSubdomains key set to YES, and the NSThirdPartyExceptionRequiresForwardSecrecy key set to NO as shown here:

这应该可以解决问题,并且在您提交时不应该导致 Apple 出现问题,因为当 Apple 开始执行更严格的 ATS 要求时,前向保密例外是不会触发额外理由需要的例外之一年(截止日期原定为 12/31/2016,但 Apple 已将截止日期延长至未来某个未知日期)