Different behaviour NSAllowsArbitraryLoadsInWebContent IOS 10.1 and 10.2
<p>When loading a certain url in <code>UIWebView</code> in IOS <strong>10.1</strong> it is failing on </p>

<blockquote>
  <p>Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made"</p>
</blockquote>

<p>However the same webview loads fine in iOS 10.2 </p>

<p>I can load the url in both 10.1 and 10.2 if I use <code>NSAllowsArbitraryLoads = YES</code> but only in 10.2 with <code>NSAllowsArbitraryLoadsInWebContent = YES</code></p>

<p>I tested the URL with <code>nscurl --ats-diagnostics</code> and it passes all tests</p>

<p>I think that the issue may have something to do with an ip location validation within the webpage.</p>

<p>Are the differences between 10.1 and 10.2 in the handling of App Transport Security Settings? Are these documented?</p>

<p>---- Edit -----</p>

<p>I managed to resolve my issue by looking at the error in didFailLoadWithError. This told me exactly what the url was that was causing the failure. I added this url to my <em>Exception Domains</em> with <strong>NSExceptionRequiresForwardSecrecy</strong>=NO (determined using the ats diagnostics)</p>

<p>This fixed my problem but I still would like to understand the differences in the two versions 10.1 &amp; 10.2.</p>