<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@fiberhome.com" title="hqwu <hqwu@fiberhome.com>"> <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">> (In reply to <a href="show_bug.cgi?id=161591#c29">comment #29</a>)
> > thank you very much!!!
> > when i use a normal webser like Apache,if i want to access cross origin
> > resource,which founction can cancel the restrictions?
> >
> > for example,my URL is "<a href="http://127.0.0.1/test/test.html">http://127.0.0.1/test/test.html</a>",on this web page ,i
> > want to get json from "<a href="http://127.0.0.1/json/testjson.json">http://127.0.0.1/json/testjson.json</a>"
>
> 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.
>
> > my webkit release is 2.4.10,it has not
> > webkit_settings_set_allow_file_access_from_file_urls function,compile result
> > is "error: ‘webkit_settings_set_allow_file_access_from_file_urls’ was not
> > declared in this scope"
>
> You probably want to upgrade to a modern version of WebKit, since 2.4.10 is
> 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>