Greetings all,
I have come across an issue with WKWebView where I want to intercept url loading on a webview which are invoked by embedded javascript.
For en example, I will load a url on WKWebView. Then when user interacts on form elements on it, some validation urls are being called underneath through some embedded javascript in the initial webpage. I want to set some authentication headers on them and also observe for loading of certain url sub paths to take actions (i.e. block or navigate user away from it, etc)
As these are loaded by javascript, it wont get notified by wkwebviewnavigationdelegate functions. What's the correct way to handle this?
Thanks
I have come across an issue with WKWebView where I want to intercept url loading on a webview which are invoked by embedded javascript.
For en example, I will load a url on WKWebView. Then when user interacts on form elements on it, some validation urls are being called underneath through some embedded javascript in the initial webpage. I want to set some authentication headers on them and also observe for loading of certain url sub paths to take actions (i.e. block or navigate user away from it, etc)
As these are loaded by javascript, it wont get notified by wkwebviewnavigationdelegate functions. What's the correct way to handle this?
Thanks