summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYigit Akcay <yigit.akcay@qt.io>2023-05-16 12:28:34 +0200
committerYigit Akcay <yigit.akcay@qt.io>2023-05-16 13:29:32 +0200
commit2e99b92731934f77e06faf0869dd65376d7db118 (patch)
tree6c2d8db503105d7f4977a221a64ba9af221fa2db
parent2b24435c7f5c1a4d5de117ff92d2b3c064952143 (diff)
downloadqtwebengine-2e99b92731934f77e06faf0869dd65376d7db118.tar.gz
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 <allan.jensen@qt.io>
-rw-r--r--src/core/api/qwebengineurlscheme.cpp5
1 files changed, 3 insertions, 2 deletions
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) {}