From 141cd328043fb58c137c77bcb4f7c949c31831ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Mon, 8 May 2017 16:27:56 +0200 Subject: [ios] remove Secure Transport exception from demo app --- platform/ios/app/Info.plist | 13 ------------- platform/ios/app/MBXViewController.m | 3 +-- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/platform/ios/app/Info.plist b/platform/ios/app/Info.plist index d05d81e49d..d5b6825422 100644 --- a/platform/ios/app/Info.plist +++ b/platform/ios/app/Info.plist @@ -51,18 +51,5 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight - NSAppTransportSecurity - - NSExceptionDomains - - stamen.com - - NSIncludesSubdomains - - NSTemporaryExceptionAllowsInsecureHTTPLoads - - - - diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index ebbc218017..b6b9eea7db 100644 --- a/platform/ios/app/MBXViewController.m +++ b/platform/ios/app/MBXViewController.m @@ -1261,8 +1261,7 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) { - (void)styleRasterSource { - // 3rd party raster source requires NSAppTransportSecurity exception for stamen.com - NSArray *tileURLTemplates = @[@"http://a.tile.stamen.com/terrain-background/{z}/{x}/{y}.jpg"]; + NSArray *tileURLTemplates = @[@"https://stamen-tiles.a.ssl.fastly.net/terrain-background/{z}/{x}/{y}.jpg"]; MGLRasterSource *rasterSource = [[MGLRasterSource alloc] initWithIdentifier:@"style-raster-source-id" tileURLTemplates:tileURLTemplates options:@{ MGLTileSourceOptionTileSize: @256, }]; -- cgit v1.2.1