Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Daniel on Feb 17, 2009 16:20
open dhtmlx forum
Cross-Domain Security issue with Firefox only!

Hi,
using grid.loadXML(xmlPath) throws the ugly "NS_ERROR_DOM_BAD_URI:Access to restricted URI denied".

Both my web-application and the xml file are on the same domain but under different port number. My web app runs under localhost:8080 and the xml file exists under localhost:80

This works fine under IE but throws the above exception under FireFox.

We can not put the xml file under localhost:8080 because it is not part of the deployment. I know JQuery has a way around it using JSON techniques, do you guys have a way around this problem?

Thanks,

Daniel,
Answer posted by Support on Feb 18, 2009 05:52
The component relay on browser for data loading, so all security limitations of browser affect data loading. 
The solution which you mentioning, most probably is loading of the data in json format through <script> tag. While grid can be loaded from json like dataset it has not build in API to auto-mate such script tag creation.