Unable to get the profile picture due to missing crossdomain.xml

125 views Asked by At

I use the AirConsole Unity to get profile pictures of players inside the game with:

AirConsole.instance.GetProfilePicture ( deviceId, 320 );

This works great with the editor. However, in a production build (WebGL), an exception is thrown because the server lacks a crossdomain.xml file. This causes my WWW request to be blocked by the security system. More info can be found in the Unity documentation: http://docs.unity3d.com/Manual/SecuritySandbox.html

Or maybe I am missing something?

Thanks!

David

1

There are 1 answers

1
Andrin von Rechenberg On BEST ANSWER

Thanks for the report.

We've added access-control-allow-origin: * headers to the image resource which should allow you to load the images inside Unity now.

(crossdomain.xml is outdated from unity web player)

Ping this thread if it doesn't work for you.

Cheers, -Andrin