- Home /
WebPlayer with HTTPS broken
To get this out of the way: I know WebGL is the preferred way to deliver Unity over the web. We are using WebGL, but also are continuing to support our Internet Explorer customers using the web player.
Unity Web Player is broken for https. We are using https://ssl-webplayer.unity3d.com/download_webplayer–3.x/3.0/uo/UnityObject2.js to create the player. However, when this script tries to download the player, we get the following message:
Note that this link works fine for sites that don't use https (and it also strips off the "ssl-" prefix).
I'm not sure if this is related, but if you go to https://unity3d.com/webplayer, the "Download" link for Windows is also broken.
Does anyone know if there is a way for us to host the webplayer plugin ourselves?
Answer by kmeboe · Feb 20, 2019 at 03:01 AM
I was able to find a workaround. Posting here in case anyone else has a similar problem in the future. Steps:
Locate your local copy of UnityObject2.js. It's installed in the Unity directory (on my machine this is C:\Program Files\Unity\Editor\Data\Resources). For more about where to find it, see here.
Place this file in your website directory, alongside your index.html file.
Modify UnityObject2.js: search for the line near the top that sets the "useSSL" variable (line 63 in my version), and set it to false:
useSSL = false;
Inside index.html, replace the stock UnityObject2.js reference with this one:
<script type="text/javascript" src="UnityObject2.js"></script>
When I hacked this in, I expected Internet Explorer to give me a warning about using unsecure content. However, it seems to just work flawlessly.
Funnily enough -- shortly after implementing the workaround, both of the https links started working for me. I had earlier tried these links on two different computers (and one is an Amazon EC2 instance, so completely different networks/firewalls).
$$anonymous$$aybe just a blip on Unity's end, or maybe they took action based on my bug report. Either way, the workaround I posted here will give developers a little more flexibility in case there are problems in the future.
Answer by Bunny83 · Feb 19, 2019 at 11:06 PM
The Webplayer has already been deprecated 3 years ago. It's no longer supported by most modern browsers.
The download link you posted to the webplayer download has an additional comma at the end. If you want to post links, make sure you actually make them a link with the proper URL. The download link works for me. However note that the webplayer is officially no longer supported since 2016.
I don't have any browser that still supports the webplayer, so i can't test if the webplayer actually works. However the auto-download link that this error shows does work for me. Are you sure you don't have any firewall issues?
Thanks for the heads up on the URL. I've fixed it by adding a link.
So you're saying that this link works for you: https://ssl-webplayer.unity3d.com/download_webplayer-3.x/UnityWebPlayer64.exe?
I can't imagine a firewall issue that would randomly block a download over only one protocol -- especially since I don't have problems with other sites.
The URL I posted is now working for me. See the comment in my answer for more details.
Your answer
![](https://koobas.hobune.stream/wayback/20220612192037im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
http NotSupportedException in Web Player 1 Answer
how do setup WebPlayer Installer on an https? Esp. Facebook. 0 Answers
https -- works in IDE & Standalone, does not work in web browser 1 Answer
crossdomain.xml error when hosted on https but requesting http 2 Answers