툴/유니티
WebRequest 사용시 에러(Non-secure network connections disabled in Player Settings)
스튜디오 오버그래픽스
2023. 11. 24. 18:25
Non-secure network connections disabled in Player Settings
UnityEngine.Networking.UnityWebRequest:Send ()
InvalidOperationException: Insecure connection not allowed
UnityEngine.Networking.UnityWebRequest.SendWebRequest ()
WebRequest를 사용하는데 위와 같은 에러가 나오는 경우 HTTP Download 권한이 막혀 있어서 생기는 에러임
유니티 에디터 Project Setting - Player - Other Settings - Configuration에서 설정 변경 가능
Allow downloads over HTTP를 Always allowed 또는 Allowed in development builds(빌드시에만 허용)로 변경
*Always Allowed로 선택하면 보안 관련 경고 문구가 나옴
변경 하고 나면 정상 작동