Webplayer can not read file from website

Hello, I dont know where is problem. My code is working in PC,
Android but not in WebPlayer … I need read file from website:

private version as string = 'http://www.cenda.cz/hry/FroggieJump/aktualniVerze.txt'
.
.    
www as WWW = WWW(version)
yield www
    		
if(www.error):
    print("No net")
    						
else:
    .
    .

I cant connect, so I have still “No net” print
Is it some permission?

1 Answer

1

When running as a web player, you app runs in a “security sandbox.” In particular, you cannot access data on any website but the one you are using for hosting. You can read more about it here:

http://docs.unity3d.com/Documentation/Manual/SecuritySandbox.html

Thanks for tip! I created xml in root of ftp, it is working good in IE and FireFox, but not in Chrome :( Is there something special for Chrome browser?

Don't know. I'd open this as a new question.