[OpenLayers-Users] In Safari is OK, in Firefox and Chrome is failed

Christopher Schmidt crschmidt at metacarta.com
Thu Dec 18 08:36:51 EST 2008


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
>   sorokin at oogis.ru
> 
> 
> 
> 

> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list