Hi, I am having an issue using a WWW call to load an image over the internet. Here is a sample of my code :
WWW www = new WWW(url);
yield return www;
var sprite = Sprite.Create(www.texture, new Rect(0, 0, www.texture.width, www.texture.height), new Vector2(0, 0), 100.0f);
m_Icon.sprite = sprite;
And here is the error I am getting when running it in webgl :
Mixed Content: The page at ‘Log into Facebook’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://m.sarbakan.com/assetName.png’. This request has been blocked; the content must be served over HTTPS.
When I run my code in editor, it works fine. So my question is, can I call an http request over an https. Cause my game is on facebook, which require an https connection to speak with my server, but I want my assets to be somewhere else and using an http connection.
So can I do it and how?