Thank you both for your responses, I'll have to write some php to pull
the file locally, I just hoped there was another way. Thanks!
Jonathan
Christopher Schmidt wrote:
On Wed, Sep 02, 2009 at 02:35:58PM +0000, Jonathan Wolfe wrote:
Hi,
I'm trying to overlay a remote kml file onto the google projection and I
get: Access to restricted URI denied" code: "1012.
When I use a local file, it works just fine.
Because of security reasons, I cannot set up a proxy server like the FAQ
suggests. Does anyone know how to get around this?
Set up a proxy, or move the file. The _javascript_ Same Origin Policy prevents
access to files that are not on the same 'origin' (host, port) as the HTML
document. If you can't make the client think that the file is local (this
is what a proxy does) or move the file so that it *is* local, then there
is nothing that _javascript_ can do to help you.
Regards,
|
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users