Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Intercept requests in QtWebEngineView
valeryz last edited by
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 :)