[에러] InvalidOperationException: Insecure connection not allowed

2023. 6. 9. 13:02에러 창고

728x90
SMALL

[Reason]

InvalidOperationException: Insecure connection not allowed
UnityEngine.Networking.UnityWebRequest.SendWebRequest () (at <158364c9db2b4aa2afddad01f0a99445>:0)
WebConnect+<UnityWebRequestGet>d__1.MoveNext () (at Assets/Edgegap/Scripts/WebConnect.cs:26)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <ba80266bdc0549f69eb2853bd3ede7ff>:0)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
WebConnect:Start() (at Assets/Edgegap/Scripts/WebConnect.cs:12)

 

Unity 와 Spring Restful api 를 연동할 때 발생된 에러이다.

http 프로토콜 서버와 연동할 때 발생된 에러라고 볼 수 있다.

 

 

[Solution]

Unity 툴에서 플레이어 설정, HTTP 프로토콜을 허용하면 해결된다.

728x90
반응형
LIST