Force Unity to accept all certificates
This commit is contained in:
parent
8bf09565bf
commit
ddf57a3640
@ -93,7 +93,7 @@ public class Exporter : SingletonMonoBehaviour<Exporter>
|
||||
using var certHandler = new ForceAcceptAllCertificateHandler();
|
||||
req.method = UnityWebRequest.kHttpVerbPOST;
|
||||
req.timeout = _config.NetworkTimeout;
|
||||
// req.certificateHandler = certHandler;
|
||||
req.certificateHandler = certHandler;
|
||||
req.uploadHandler = new UploadHandlerRaw(new UTF8Encoding().GetBytes(import));
|
||||
req.downloadHandler = new DownloadHandlerBuffer();
|
||||
req.SetRequestHeader("Content-Type", "application/json");
|
||||
|
Loading…
Reference in New Issue
Block a user