赞
踩
InvalidOperationException: Insecure connection not allowed
UnityEngine.Networking.UnityWebRequest.SendWebRequest () (at <2d989207a9e14c159f459b95177ec6ea>:0)
UnityEngine.WWW..ctor (System.String url) (at <7234621a0f72448689c67e103dcb6123>:0)
Valve.VR.SteamVR_Update.Update () (at Assets/SteamVR/Editor/SteamVR_Update.cs:42)
InvalidOperationException,这是一个常见的异常,通常是由于代码试图执行一个不被允许的操作时触发的。特别是,错误消息“不允许不安全的连接”表明问题可能与尝试建立一个不安全(可能是非HTTPS)的网络连接有关。
UnityEngine.Networking.UnityWebRequest.SendWebRequest()
方法,这是Unity用于处理网络请求的标准方式。由于安全性的提高,很多现代的网络环境要求所有网络连接都必须是安全的(即使用HTTPS),而不是不安全的(HTTP)。
- const string currentVersion = "2.1";
- const string versionUrl = "https://media.steampowered.com/apps/steamvr/unitypluginversion.txt";
- const string notesUrl = "https://media.steampowered.com/apps/steamvr/unityplugin-v{0}.txt";
- const string pluginUrl = "https://u3d.as/content/valve-corporation/steam-vr-plugin";
- const string doNotShowKey = "SteamVR.DoNotShow.v{0}";
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。