I am trying to access an xml file suing jquery and ajax call. I found that that cross domain request are not allowed unless you do some config changes on the web server.
I am doing this:
$(document).ready(function () {
$("#div1").jstree({
"xml_data": {
"ajax": {
type: "GET",
dataType: 'xml',
url: "http://192.168.101.1/img/tree.xml"
I have modified iis web.config file as follows:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
Recycled IIs but I still cannot access that xml file. Any ideas how I can tackle this issue?