병갈이 블록

HTTP통신 허용하기. 본문

IT(Old)/iOS & Swift

HTTP통신 허용하기.

woojang 2020. 11. 30. 21:35

기본적인 셋팅으로 HTTP통신을 시도하게되면 에러발생.

- 에러내용
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure 어쩌고...

- 해결방법
우선 App Info파일 설정 수정.
1. info.plist 파일 열기.
2. [Information Property List]에 "App Transport Security Settings" 추하 후 하위 레벨에 "Allow Arbitrary Loads" 추가 후 [Value]를 "YES"로 설정.

Comments