title: Xcode error: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814)
body: <p>I'm currently developing a game that requires ATS to be disabled:</p>
  
  <pre><code>&lt;key&gt;NSAppTransportSecurity&lt;/key&gt;
  &lt;dict&gt;
      &lt;key&gt;NSAllowsArbitraryLoads&lt;/key&gt;
      &lt;true/&gt;
      &lt;key&gt;NSExceptionDomains&lt;/key&gt;
      &lt;dict/&gt;
  &lt;/dict&gt;
  </code></pre>
  
  <p>(In the code above there are no exception domains)</p>
  
  <p>I need this because I'm using AdMob rewarded video mediation with Vungle and AdColony - both require ATS to be disabled. I realize that I could modify that code to make these sites exceptions while ATS is enabled, but it didn't seem to change anything, except give me warnings in the console from the ad networks telling me that ATS needs to be enabled. </p>
  
  <p>The ads used to work fine with ATS disabled and didn't receive this warning until I updated to Xcode 8 (I was using Swift 3 and Xcode 8 beta before). </p>
  
  <p>Even though I disable ATS, these ad networks don't seem to work (I also setup a third ad network that doesn't require disabling ATS to check if it was an AdMob problem, and it worked fine). </p>
  
  <p>Whenever it tries to load a video ad I get this warning in the console multiple times:</p>
  
  <blockquote>
    <p>NSURLSession/NSURLConnection HTTP load failed
    (kCFStreamErrorDomainSSL, -9814)</p>
  </blockquote>
  
  <p>I'm not sure what I should do about this. I've read practically every other similar answer to this type of issue, but none seem to fix the problem. Also, since I'm not using my own server, I can't/dont know how to make the desired ad networks sites whitelisted (I've tried putting in their domains/subdomains as exceptions)</p>
  
  <p>Is there something important that I'm missing or is what I'm doing completely wrong? Is there a solution to this or do I have to wait for the ad networks to become ATS compliant? Any help is appreciated.</p>
  
  <p>PS: I know about how all apps should be ATS compliant and could/likely will get denied from the app store...</p>