If i build it for PC it works.
There is a related post:https://gamesnet.yahoo.net/forum/viewtopic.php?f=41&t=35148
But the last update was over a year ago.
I have tried on Unity 4.5 and Unity 5 now,
If i build the game as PC platform it works fine, but if I build it for web player it does not work:
Cannot overwrite header: host at UnityEngine.WWW.CheckSecurityOnHeaders
I just want to know if Unity Webplayer is being supported or not.. Anyone?
Thanks!
Call stack error her:
- Code: Select all
System.ArgumentException: Cannot overwrite header: host
at UnityEngine.WWW.CheckSecurityOnHeaders (System.String[] headers) [0x00044] in C:\BuildAgent\work\d63dfc6385190b60\Runtime\Export\WWW.cs:71
at UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Generic.Dictionary`2 headers) [0x00018] in C:\BuildAgent\work\d63dfc6385190b60\artifacts\EditorGenerated\Utils.cs:88
at PlayerIOClient.Internal.identifier114+identifier806.getRequest[identifier143] (Int32 method, identifier1044 args) [0x00000] in <filename unknown>:0
UnityEngine.Debug:LogError(Object)
PlayerIOClient.Internal.identifier806:getRequest(Int32, identifier1044)
PlayerIOClient.Internal.identifier808:MoveNext()
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
PlayerIOClient.Internal.identifier49:Enqueue(IEnumerator)
PlayerIOClient.Internal.identifier806:Call(Int32, identifier143, Callback`1, Callback`1)
PlayerIOClient.ChannelMonitor:Call(Int32, identifier143, Callback`1, Callback`1)
PlayerIOClient.Internal.identifier114:Authenticate(String, String, Dictionary`2, List`1, String, Dictionary`2, List`1, Callback`1, Callback`1)
PlayerIOClient.<>c__DisplayClass15:<Authenticate>b__10()
PlayerIOClient.PlayerIO:ensureInitialized(Callback)
PlayerIOClient.PlayerIO:Authenticate(String, String, Dictionary`2, String[], Callback`1, Callback`1)
GameManager:Start() (at Assets/Scripts/GameManager.cs:52)
- Code: Select all
ArgumentException: Cannot overwrite header: host
UnityEngine.WWW.CheckSecurityOnHeaders (System.String[] headers) (at C:/BuildAgent/work/d63dfc6385190b60/Runtime/Export/WWW.cs:71)
UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Generic.Dictionary`2 headers) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/Utils.cs:88)
PlayerIOClient.Internal.identifier114+identifier806.getRequest[identifier143] (Int32 method, identifier1044 args)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
PlayerIOClient.Internal.identifier49:Enqueue(IEnumerator)
PlayerIOClient.Internal.identifier806:Call(Int32, identifier143, Callback`1, Callback`1)
PlayerIOClient.ChannelMonitor:Call(Int32, identifier143, Callback`1, Callback`1)
PlayerIOClient.Internal.identifier114:Authenticate(String, String, Dictionary`2, List`1, String, Dictionary`2, List`1, Callback`1, Callback`1)
PlayerIOClient.<>c__DisplayClass15:<Authenticate>b__10()
PlayerIOClient.PlayerIO:ensureInitialized(Callback)
PlayerIOClient.PlayerIO:Authenticate(String, String, Dictionary`2, String[], Callback`1, Callback`1)
GameManager:Start() (at Assets/Scripts/GameManager.cs:52)