On Thu, Dec 18, 2008 at 03:45:21PM +0300, ?????? ??????? wrote: > Hello openlayers users, > > I am trying to get KML content from the local address like this: > > ... > var kml = new OpenLayers.Layer.GML(lab, "http://localhost:4848/kml", > kml_ops ) > ... > > In Safari on Mac OS X all is going well! > But in Firefox on Mac OS X I get this error message: > > uncaught exception: [Exception... "Access to restricted URI denied" > code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: > "file:///c:/OpenLayers-2.6/lib/OpenLayers/Ajax.js Line: 334"]
You are violating the Same Origin Policy. http://en.wikipedia.org/wiki/Same_origin_policy -- Chris > Few weeks ago all was working well also in Chrome on Windows. But now > Chrome give me "Access denied..". > Please, explain me what's going wrong? > > Sincerely, > > Ruslan Sorokin > [email protected] > > > > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
