Details
Description
QWebEngineUrlRequestInterceptor::interceptRequests allows intercepting requests made by the web site and inspect or modify them. Among others it allows:
- setting custom HTTP headers via QWebEngineUrlRequestInfo::setHttpHeader
- redirecting the browser to a custom URL via QWebEngineUrlRequestInfo::redirect
While both of the features work fine alone, the don't work combined, which means that when redirecting a browser request and adding custom headers, the redirection works, but the custom headers are not added to the new redirected request.
Attachments
For Gerrit Dashboard: QTBUG-88861 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
323830,2 | Set custom headers from QWebEngineUrlRequestInfo before triggering redirect | 5.15 | qt/qtwebengine | Status: MERGED | +2 | 0 |