Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Quick Help
- Spring
- 적절한 사용방법
- swift
- 보라색오류
- Demystify SwiftUI
- bounds이해
- git branch strategy
- Xcode
- Lazy
- mvc cocoa
- ios login
- spring guide
- lazy 위험성
- Explict Identity
- lazy 사용
- native개발
- WWDC21
- view
- ios
- schemes
- Identity
- Your app is missing support for the following URL schemes: your_ios_client_id
- SwfitUI
- Lifetime of SwiftUI
- Structural Identity
- frame이해
- consuming a restful web service
- xml delegate
- TabBarItems
Archives
- Today
- Total
Dev_Dylan
[iOS] HTTP 접근 허용. (ATS_App Transport Security) 본문
URLSession을 사용해서 네트워킹을 할 때
URL로 HTTP 를 사용하게 된다면 아래와 같은 보라색 경고창(오류창)이 나옴
App Transport Security has blocked a cleartext HTTP connection to "ADDRESS" since it is insecure. Use HTTPS instead or add this domain to Exception Domains in your Info.plist.
오류 메세지 그대로 App Transport Security 에서 HTTP 통신을 막았다는 것.
- 이는 APPLE에서 iOS9 에 도입된 보안기능.
- HTTP 접속을 허용 할 수 있지만 앱 심사 통과가 안될 가능성이 있음.
HTTP 가능하도록 설정 변경
1. App TARGETS
2. Info
3. App Transport Security Settings 생성
우클릭 + add row 하거나 Enter 누르면 새로 생성됨.
4. 생성된 App Transport Security Settings 우측에 +버튼 클릭해서 Allow Arbitrary Loads 생성
No -> Yes 변경
HTTP 통신을 허용해 보라색 경고가 나오지 않음.
'iOS > Solve_ERROR' 카테고리의 다른 글
[iOS]Google Login 스키마 추가(with error) (0) | 2024.03.08 |
---|---|
[iOS] FatalError는 어떻게 써야할까? (with 에러처리) (1) | 2023.12.10 |
iOS_ViewController buttons를 array에 [Lazy] (0) | 2022.04.09 |
iOS_PickerView question mark (debug) (0) | 2022.04.09 |
Comments