mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Merge pull request #4510 from nextcloud/bugfix/fixWebFlowV1GssSso
only add OCS-APIREQUEST header for 1st request of webflow v1
This commit is contained in:
commit
1858409d9e
1 changed files with 4 additions and 1 deletions
|
@ -136,7 +136,10 @@ WebViewPageUrlRequestInterceptor::WebViewPageUrlRequestInterceptor(QObject *pare
|
|||
}
|
||||
|
||||
void WebViewPageUrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info) {
|
||||
info.setHttpHeader("OCS-APIREQUEST", "true");
|
||||
if (info.initiator().isEmpty()) {
|
||||
info.setHttpHeader("OCS-APIREQUEST", "true");
|
||||
qCDebug(lcWizardWebiew()) << info.requestMethod() << "add extra header" << "OCS-APIREQUEST";
|
||||
}
|
||||
}
|
||||
|
||||
WebViewPageUrlSchemeHandler::WebViewPageUrlSchemeHandler(QObject *parent)
|
||||
|
|
Loading…
Reference in a new issue