title: Load local HTML/Javascript with WKWebView iOS
body: <p>I try to load a local HTML game with javascript on WKWebView. Although i can see HTML pages styled by the CSS, I can't hear any sound of the game and some game's actions not corresponding.</p>
  
  <p>I notice that if i load exactly the same game via http live server everything seems perfect. So I suppose that something goes wrong with local load. 
  Maybe this one Apache's <a href="https://issues.apache.org/jira/browse/CB-10143" rel="nofollow noreferrer">issue</a> could be the problem?</p>
  
  <p>Info.plist :</p>
  
  <pre><code>&lt;key&gt;NSAppTransportSecurity&lt;/key&gt;
  &lt;dict&gt;
      &lt;key&gt;NSAllowsArbitraryLoads&lt;/key&gt;
      &lt;true/&gt;
  &lt;/dict&gt;
  </code></pre>
  
  <p>My code <strong>(SWIFT 3)</strong> : </p>
  
  <pre><code>import UIKit
  import WebKit
  
  class WebViewController: AppViewController, WKUIDelegate {
  
      var webView: WKWebView!
  
      override func loadView() {
          let webConfiguration = WKWebViewConfiguration()
          webView = WKWebView(frame: .zero, configuration: webConfiguration)
          webView.uiDelegate = self
          view = webView
      }
  
      override func viewDidLoad() {
          super.viewDidLoad()
          if let path = Bundle.main.path(forResource: "index", ofType: "html", inDirectory: "game") {
              webView.load(URLRequest(url : URL(fileURLWithPath: path)))
          }
      }
  
  }
  </code></pre>