0

my app should open a website from my server in web view. Everything works fine until I tried to use my app with EL Captian.

Here I dumbed the code down:

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {

    NSString *urlText = [[NSUserDefaults standardUserDefaults] stringForKey:@"urlTextField"];
    [[self.webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlText]]];
    return;
}

- (void)applicationWillTerminate:(NSNotification *)aNotification {
    // Insert code here to tear down your application
}


- (IBAction)navigateURL:(id)sender {
    NSString *urlTextField = [self.urlTextField stringValue];
    NSURL*url=[NSURL URLWithString:urlTextField];
    NSURLRequest*request=[NSURLRequest requestWithURL:url];
    [[[self webView] mainFrame] loadRequest:request];
}

this works fine with sites like Wikipedia or Apple.com, but with El Capitan I have no chance to connect to my site (http://resolvo-app.com).

Thanks for help!

  • Its probably AppSecurity issue. only HTTPS sites are allowed by default. http://stackoverflow.com/a/32631185/366346 – GoodSp33d Oct 25 '15 at 14:29
  • There is nothing I could do to make my app running? –  Oct 25 '15 at 16:19
  • Possible duplicate of [The resource could not be loaded because the App Transport Security policy requires the use of a secure connection](http://stackoverflow.com/questions/32631184/the-resource-could-not-be-loaded-because-the-app-transport-security-policy-requi) – Eric Aya Oct 25 '15 at 19:54
  • @kjg Can you post the errors from console ? – GoodSp33d Oct 26 '15 at 06:21
  • Thanks so much Eric D. App is working :) –  Oct 26 '15 at 15:00

0 Answers0