javascript - XMLHttpRequest cannot load xml-file. No 'Access-Control-Allow-Origin' header is present on the requested resource -
this has been asked alot it's json files. have online xml file website want use on subdomain website following error:
xmlhttprequest cannot load xml-file. no 'access-control-allow-origin' header present on requested resource
this code use load xml file:
url = "http://www.worldofleonalewis.com/duets/rss.xml"; $("#video-detail").empty() $("#videos").empty(); $.ajax({ type: "get", datatype: "xml", url: url, success: function (xml) { }
the solution have atm copy entire xml file , save xml file xml file updated post new content seems crazy work.
i've read json , jsonp solutions can't json file this, xml.
Comments
Post a Comment