有了新的 App Transport Security 策略,为什么旧​​的应用程序仍然可以工作?

With the new App Transport Security policy, how come older apps still work?

自 iOS9 起,所有连接都必须安全并遵循特定标准。但是,使用 http 连接的旧应用程序无需更新即可继续工作。这是为什么?

根据 Documentation ATS 仅当您 link 针对 iOS 9.0 / macOS 10.11 或更高版本时才启用。如果您 link 针对较旧的 SDK 版本,您的应用程序可以在没有 ATS 要求的情况下继续运行。

If you link your app against an SDK for an operating system older than iOS 9.0 or OS X v10.11, your Internet connections continue to work but ATS is disabled, no matter which version of the operating system your app is running on. ATS is not available on operating systems older than iOS 9.0 or OS X v10.11; those older operating systems ignore the NSAppTransportSecurity key.