From ddf57a36405c4f8c8a912bee9ddb2ba5be335b0d Mon Sep 17 00:00:00 2001 From: beerpsi Date: Wed, 22 May 2024 03:53:02 +0700 Subject: [PATCH] Force Unity to accept all certificates --- Rizu/Exporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rizu/Exporter.cs b/Rizu/Exporter.cs index f688fa4..74133e3 100644 --- a/Rizu/Exporter.cs +++ b/Rizu/Exporter.cs @@ -93,7 +93,7 @@ public class Exporter : SingletonMonoBehaviour 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");