<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mcatanzaro&#64;igalia.com" title="Michael Catanzaro &lt;mcatanzaro&#64;igalia.com&gt;"> <span class="fn">Michael Catanzaro</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - [Gtk] can not show json data (local file restrictions?)"
   href="https://bugs.webkit.org/show_bug.cgi?id=161591">bug 161591</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>dbates&#64;webkit.org
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>REOPENED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - [Gtk] can not show json data (local file restrictions?)"
   href="https://bugs.webkit.org/show_bug.cgi?id=161591#c31">Comment # 31</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - [Gtk] can not show json data (local file restrictions?)"
   href="https://bugs.webkit.org/show_bug.cgi?id=161591">bug 161591</a>
              from <span class="vcard"><a class="email" href="mailto:mcatanzaro&#64;igalia.com" title="Michael Catanzaro &lt;mcatanzaro&#64;igalia.com&gt;"> <span class="fn">Michael Catanzaro</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=161591#c29">comment #29</a>)
<span class="quote">&gt; thank you very much!!! 
&gt; when i use a normal webser like Apache,if i want to access cross origin
&gt; resource,which founction can cancel the restrictions?
&gt; 
&gt; for example,my URL is &quot;<a href="http://127.0.0.1/test/test.html">http://127.0.0.1/test/test.html</a>&quot;,on this web page ,i
&gt; want to get json from &quot;<a href="http://127.0.0.1/json/testjson.json">http://127.0.0.1/json/testjson.json</a>&quot;</span >

Oh for that you don't need to mess with WebKit APIs at all, you can do it using CORS. I'm not an expert; you can check out <a href="http://enable-cors.org/">http://enable-cors.org/</a> for an explanation. 

<span class="quote">&gt; my webkit release is 2.4.10,it has not
&gt; webkit_settings_set_allow_file_access_from_file_urls function,compile result
&gt; is &quot;error: ‘webkit_settings_set_allow_file_access_from_file_urls’ was not
&gt; declared in this scope&quot;</span >

You probably want to upgrade to a modern version of WebKit, since 2.4.10 is old/insecure/unsupported.</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>