Re: initWithRequest:delegate:startImmediately
> On Oct 24, 2016, at 5:47 PM, Sal Conigliarowrote: > > Check out the WWDC videos on what's new in app security. In a nutshell you > need to specify (in the imno.plist) the specific domains that you want to > turn off ATS. Even that is just a stopgap. The real solution is to use HTTPS. If the server you’re connecting to doesn’t support HTTPS, then configure SSL on it if you have access. (If you don’t have access to the server, complain to whomever runs it. In this day & age everything should be running SSL.) —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: initWithRequest:delegate:startImmediately
Disabling ATS isn't a long-term solution. Soon Apple (Jan 1?) will require you to ask for an exemption if your app disables ATS. Check out the WWDC videos on what's new in app security. In a nutshell you need to specify (in the imno.plist) the specific domains that you want to turn off ATS. Sal -- Sal Conigliaro, e design www.erinedesign.com @sconig > On Oct 24, 2016, at 3:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > > Date: Mon, 24 Oct 2016 11:36:47 -0600 > From: "Raglan T. Tiger" <r...@crusaderrabbit.net> > To: Cocoa Dev <cocoa-dev@lists.apple.com> > Subject: Re: initWithRequest:delegate:startImmediately > Message-ID: <605b986e-c562-4f50-bbc7-fab34865e...@crusaderrabbit.net> > Content-Type: text/plain;charset=us-ascii > > Holy connection batman ... just put > > > > NSAppTransportSecurity > >NSAllowsArbitraryLoads > > > > > > in the info.plst. > > Sorry for the noise ... but it is Monday morning. > > -rags ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: initWithRequest:delegate:startImmediately
Holy connection batman ... just put NSAppTransportSecurity NSAllowsArbitraryLoads in the info.plst. Sorry for the noise ... but it is Monday morning. -rags > On Oct 24, 2016, at 11:09 AM, Raglan T. Tigerwrote: > > > NSURLRequest initWithRequest:delegate:startImmediately has been deprecated > and I am not sure what to use in its place. > > Building with xc 6.2 and sdk 9 with a deploy target of 10.5 all is well, even > running on Sierra. > > Building with xc 7.3.1 and sdk 10.11 this code: > > NSURLConnection* connection = [[NSURLConnection alloc] > initWithRequest:request delegate:self startImmediately:YES]; > > fails immediateley calling it delegate method connection:didFailWithError: > with error -1022 > > running on El Capitan or Sierra. > > What is going on or what don't I understand. > > > Or, should I move to NSURLSession ... I haven't found yet if NSURlSession > will deploy on 10.5 > > Any help is sorely needed. > > > > -rags > > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/koko%40highrolls.net > > This email sent to k...@highrolls.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com