Intercept requests in QtWebEngineView
I was wondering if there is a way to intercept requests in WebView in qml. I currently have it implemented in qt + cpp with QWidget, but would prefer to move it to qml, as the rest of my application is there.
Currently I am setting a url interceptor on my QWebEngineProfile like this:
m_urlInterceptor = new UrlInterceptor(this);
m_page = m_webView->page();
m_profile = m_page->profile();
I do not see an option to set url interceptor on WebEngineProfile in the doc.
I need to intercept the request in order to inject a custom header.
Any help is greatly appreciated :)