UIWebView access other than Google

0

My webView perfectly accesses Google, but if I try to access another page like my site or a local address, it gets the white screen.

class ConectViewController: UIViewController {
    @IBOutlet weak var webView: UIWebView!
    var urlPath : String = "https://afurlan.com.br" // cria url - possivel erro no colocar o https (pode colocar http)

    func loadAddressURL () { // cria funcão
        let requestURL = NSURL(string: urlPath)
        let request = NSURLRequest(URL: requestURL!)
        webView.loadRequest(request) // carrega
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        loadAddressURL()
    }
}

In the Xcode log the following text is available:

  

Security has blocked a cleartext HTTP (http: //) resource load since it   is insecure. Temporary exceptions can be configured via your app's   Info.plist file.

    
asked by anonymous 21.10.2015 / 01:49

0 answers