Forum General endpoint 'http not https

Any issues or discussions relating to Unity development are welcome here.

endpoint 'http not https

Postby vetcat » June 4th, 2017, 3:47 pm

Hi, it's great that there was support for Unity3d webgl - it really works though without the Multiplayer functionality.
But most social networks have long switched to the protocol of https.
However, the updated Unity3d library refers to the http - which results in a lockout :(

"Mixed Content: The page at 'https://vk.com/app4909200' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://api.playerio.com/api/unitywebgl'. This request has been blocked; the content must be served over HTTPS."

Image
vetcat
 
Posts: 7
Joined: November 4th, 2012, 10:37 pm

Re: endpoint 'http not https

Postby vetcat » June 4th, 2017, 5:55 pm

O yes, the type of connection can be controlled via PlayerIOClient.PlayerIO.UseSecureApiRequests = true;
And it works for webgl - cool :)
Great work!
vetcat
 
Posts: 7
Joined: November 4th, 2012, 10:37 pm

Re: endpoint 'http not https

Postby Henrik » June 6th, 2017, 5:24 am

I'm glad you found the setting yourself! :)

It's disabled by default, since HTTPS makes the initial connections a little bit slower, so we want developers to enable it only if they need it, for example if they're uploading their game to a social network of some sort.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to General



cron