<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:guram.kajaia&#64;gmail.com" title="guram.kajaia&#64;gmail.com">guram.kajaia&#64;gmail.com</a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WKWebView needs feature to allow file:// subresources"
   href="https://bugs.webkit.org/show_bug.cgi?id=154916">bug 154916</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>guram.kajaia&#64;gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WKWebView needs feature to allow file:// subresources"
   href="https://bugs.webkit.org/show_bug.cgi?id=154916#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WKWebView needs feature to allow file:// subresources"
   href="https://bugs.webkit.org/show_bug.cgi?id=154916">bug 154916</a>
              from <span class="vcard"><a class="email" href="mailto:guram.kajaia&#64;gmail.com" title="guram.kajaia&#64;gmail.com">guram.kajaia&#64;gmail.com</a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=154916#c6">comment #6</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=154916#c5">comment #5</a>)
&gt; &gt; 
&gt; &gt; Just for the sake of mentioning it, this works correctly if you set the
&gt; &gt; allowFileAccessFromFileURLs preference in WKPreferences, but there's no
&gt; &gt; public API to do so.
&gt; 
&gt; Yep, it's there in the source:
&gt; <a href="https://github.com/WebKit/webkit/blob/master/Source/WebKit2/UIProcess/API/">https://github.com/WebKit/webkit/blob/master/Source/WebKit2/UIProcess/API/</a>
&gt; Cocoa/WKPreferences.mm#L388-L396
&gt; 
&gt; Are you saying that there is no way to enable that preference when creating
&gt; a WKWebView?</span >

There is a way to set this property:
wkwebview.configuration.preferences.setValue(true, forKey: &quot;allowFileAccessFromFileURLs&quot;)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>