<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:mcatanzaro@igalia.com" title="Michael Catanzaro <mcatanzaro@igalia.com>"> <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>
</td>
<td>dbates@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@igalia.com" title="Michael Catanzaro <mcatanzaro@igalia.com>"> <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">> 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>"</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">> 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"</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>