<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <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#c33">Comment # 33</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:hqwu&#64;fiberhome.com" title="hqwu &lt;hqwu&#64;fiberhome.com&gt;"> <span class="fn">hqwu</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=161591#c31">comment #31</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=161591#c29">comment #29</a>)
&gt; &gt; thank you very much!!! 
&gt; &gt; when i use a normal webser like Apache,if i want to access cross origin
&gt; &gt; resource,which founction can cancel the restrictions?
&gt; &gt; 
&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; &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;
&gt; 
&gt; Oh for that you don't need to mess with WebKit APIs at all, you can do it
&gt; using CORS. I'm not an expert; you can check out <a href="http://enable-cors.org/">http://enable-cors.org/</a> for
&gt; an explanation. 
&gt; 
&gt; &gt; my webkit release is 2.4.10,it has not
&gt; &gt; webkit_settings_set_allow_file_access_from_file_urls function,compile result
&gt; &gt; is &quot;error: ‘webkit_settings_set_allow_file_access_from_file_urls’ was not
&gt; &gt; declared in this scope&quot;
&gt; 
&gt; You probably want to upgrade to a modern version of WebKit, since 2.4.10 is
&gt; old/insecure/unsupported.</span >

thank you. I will upgrade to webkit2.12.5 today,and then test it.</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>