Hi! I have got a problem connected to sending HTTP GET request with authorization header on iOS platform. In the editor and on Android it's fully working, but on iOS it is working nondeterministically. With POST there is no problem with sending header. I would really appreciate your feedback on this.
Below I am attaching code for creating request:
var www = UnityWebRequest.Get(url);
www.timeout = timeout;
foreach (var headerData in header)
{
www.SetRequestHeader(headerData.Key, headerData.Value);
}
and for creating request header:
public Dictionary GetAuthorizationToken()
{
return new Dictionary
{
{"Authorization", "Bearer " + _userDataManager.UserData.AuthorizationToken}
};
}
↧