How to load URL on WKWebView? : <p>I am trying to load URL on WKWebView which contain the CSV file.</p>

<p>When I tried it loading normally it was giving me an error: '<strong>The file format is not supported / it might be corrupted</strong>'.</p>

<p>Even mobile safari is also giving me the same error.</p>

<p>Then I tried using MIME type with the following method of WKWebView:</p>

<pre><code>   try! Data(ContentsOf: bulkUrl)

   webView.load(data, mimeType: "text/csv", characterEncodingName: "", baseURL: bulkUrl)
</code></pre>

<p>It works but giving me plain text.</p>

<p>Same thing I tried it with UIWebView its opening CSV file in the correct format.</p>

<p>I am not getting why WKWebView is not able to open the same file. Any idea?</p>

<p>Thanks in advance</p>
