- Home /
http url not work in webgl (unity2019.3).
HTTP URL not work in WebGL (unity2019.3). why HTTP URL respond unknown error. HTTPS URL working fine. when try to download data (ex: Texture) from HTTP URL using UnityWebRequest it show unknown error.. Thanks...
Answer by Bunny83 · Jun 14, 2019 at 12:21 PM
If your whole page is loaded through an SSL encrypted connection (e.i. through https) you can not load any non encrypted resources. This is a basic security limitation of your web browser and has nothing to do with Unity. From inside an https page you simply aren't allowed to load unencrypted http resources.
Apart from mixing protocols if you try to load a resource from a different domain you have to setup CORS on the external server to allow the other site to load that resource.
Keep in mind that some platforms may require https or at least require an explicit setting to allow insecure web connections.
Finally keep in mind that self signed SSL certificates are not considered secure. Security comes from the chain of trust. If you don't want to pay for a proper certificate you could use a Let's Encrypt certificate.
Since we don't know what you're actually doing it's impossible to tell what went wrong on your end. It's also possible that your server is misconfigured.
Thank you Bunny83 . your response is more helpful for me. Thank you ...