[Solved] And yet, another crossdomain.xml thread..

Hello everyone. I am trying to use the Google Maps Free Plugin to show a map as a texture in one of my GameObjects, but all I am getting as a result, is a error message:

You are trying to load data from a www stream which had the following error when downloading.
Rejected because no crossdomain.xml policy file was found

For those about to ask, I am using localhost (set with the Internet Microsoft Service, a default configuration) and I already have a crossdomain.xml in my root, with this content:

<?xml version="1.0"?>

I don’t know what I can do anymore so any suggestion will be useful :slight_smile:

AFAIK crossdomain.xml needs to be on the server that hosts the file, not on the client. What is the URL for the map texture?

Thanks, I didn’t knew that!

This is the url being called: http://maps.googleapis.com/maps/api/staticmap?center=London&zoom=10&size=512x512&scale=2&maptype=terrain&sensor=false

Looks like http://maps.googleapis.com/crossdomain.xml does not allow access from other domains because they may have forgotten or they disabled it themselves (ironic), that may be why it does not work.

http://client.cors-api.appspot.com/client#?client_method=GET&client_credentials=false&server_url=http://maps.googleapis.com/crossdomain.xml&server_enable=true&server_status=200&server_credentials=false&server_tabs=remote when you open browser console and hit “Send Request” it says:

Edit: perhaps it may be necessary to load the image through a proxy that allows cross-origin requests to its crossdomain.xml file.

Just did some more research and found different answers:

Redirecting to Google Groups they speak about it but for flash.

On javascript Google Maps JS - Detection - JSFiddle - Code Playground shows that setting an image’s crossOrigin property before loading seems to resolve it.

Which platform are you using?

Perhaps someone else who knows more about these may be able to help better :slight_smile: I thought I did but I am now confused as well!

Hey toxicFork, thanks a lot for your help! I managed to learn more about this security issue, and found the problem.
I was trying to access http://maps.googleapis.com/crossdomain.xml but the file that allows developers to use the API is located in another folder: http://maps.googleapis.com/mapsapi/crossdomain.xml
It’s just a shame that I didn’t found any doc about this in the developers section in Google.

1 Like