From 2e99b92731934f77e06faf0869dd65376d7db118 Mon Sep 17 00:00:00 2001 From: Yigit Akcay Date: Tue, 16 May 2023 12:28:34 +0200 Subject: Update documentation for QWebEngineUrlScheme::FetchApiAllowed Update the documentation to also mention that XMLHttpRequest Web API send method needs this flag if it contains a body. Change-Id: I7588fc0af441c48516e80f6c5f38b8e54771ba9a Reviewed-by: Allan Sandfeld Jensen --- src/core/api/qwebengineurlscheme.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/api/qwebengineurlscheme.cpp b/src/core/api/qwebengineurlscheme.cpp index 1ab32aaad..595d64e5c 100644 --- a/src/core/api/qwebengineurlscheme.cpp +++ b/src/core/api/qwebengineurlscheme.cpp @@ -164,8 +164,9 @@ public: \c http and \c https are CORS enabled. (Added in Qt 5.14) \value FetchApiAllowed - Enables a URL scheme to be used by the HTML5 fetch API. By default - only \c http and \c https can be used by fetch. + Enables a URL scheme to be used by the HTML5 fetch API and \c XMLHttpRequest.send with + a body. By default only \c http and \c https can be send to using the Fetch API or with + an XMLHttpRequest with a body. */ QWebEngineUrlScheme::QWebEngineUrlScheme(QWebEngineUrlSchemePrivate *d) : d(d) {} -- cgit v1.2.1