I run a very simple project to test if http protocals can work on webplayer or not.
I found that it can work on exe on windows but when I deploy it on webplayer and distribute it on IIS.
It can’t work when I process a http “Get” why? Below is my script
Using the WWW class in WebGL
The Unity WWW class is supported in WebGL. It is implemented using the XMLHttpRequest class in JavaScript, using the browser to handle WWW requests. This imposes some security restrictions on accessing cross-domain resources. Basically any WWW request to a server which is different from the server hosting the WebGL content needs to be authorized by the server you are trying to access. This is similar to the crossdomain.xml requirement in the Unity Web Player, but the protocol is different. To access cross-domain WWW resources in WebGL, the server you are trying to access needs to authorize this using CORS.