From dfe78a19b9e8e3d902d1a7bce096dd1f25e52374 Mon Sep 17 00:00:00 2001 From: Rich Wardwell Date: Thu, 21 Jan 2016 09:37:50 -0500 Subject: [PATCH] Update URL to avoid ATS error With Xcode 7, you will receive an ATS error due to the non-https URL: "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." --- .../RanchForecast/RanchForecast/ScheduleFetcher.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter 28 - WebServices/RanchForecast/RanchForecast/ScheduleFetcher.swift b/Chapter 28 - WebServices/RanchForecast/RanchForecast/ScheduleFetcher.swift index 32d5324..84b7db1 100644 --- a/Chapter 28 - WebServices/RanchForecast/RanchForecast/ScheduleFetcher.swift +++ b/Chapter 28 - WebServices/RanchForecast/RanchForecast/ScheduleFetcher.swift @@ -35,7 +35,7 @@ class ScheduleFetcher { func fetchCoursesUsingCompletionHandler(completionHandler: FetchCoursesResult -> Void) { - let url = NSURL(string: "http://bookapi.bignerdranch.com/courses.json")! + let url = NSURL(string: "https://bookapi.bignerdranch.com/courses.json")! let request = NSURLRequest(URL: url) let task = session.dataTaskWithRequest(request) { data, response, error in