I am using WKWebView in swift4 Xcode 10. I am loading a site and user is supposed to logged in which will take him to next page which is a dashboard.
The url is perfectly working in Safari. User can easily logged in but when I load the url in WKWebView and hit Login Button it stucks there and nothing happens. So far I have no idea what's going wrong as the same site is working fine in Safari App so I expect it to work in WKWebView as well
let webConfiguration = WKWebViewConfiguration()
webView = WKWebView(frame: .zero, configuration: webConfiguration)
webView.uiDelegate = self
view = webView
let url = URL.init(string: ".com/app/#/login")
let request = URLRequest.init(url: url!)
webView.load(request)