Pick the fix
One partner API host still serves plain HTTP. What do you do?
Hint 1 of 1
How narrow can the exception be?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Add an NSExceptionDomains entry for that host only, with NSExceptionAllowsInsecureHTTPLoads, and plan its removal
Correct. The rest of the app keeps full ATS protection.
Why not the others?
- B Set
NSAllowsArbitraryLoadsto true. That turns ATS off everywhere and needs App Review justification. - C Switch to a third-party HTTP library. It doesn't make the connection secure.
- D Replace http with https in the URL and ignore errors. If the host has no valid TLS, requests simply fail.