From c63afe36dbb20f515c8ddcb7565a317e56de6791 Mon Sep 17 00:00:00 2001 From: Yigit Akcay Date: Thu, 2 Feb 2023 15:21:45 +0100 Subject: Custom URL Schemes usable with HTML5 Fetch Api MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change adds the QWebEngineUrlScheme::FetchApiAllowed flag and test cases to test its effect. When FetchApiAllowed flag is set a custom url scheme can be used by the HTML5 fetch api. Fixes: QTBUG-88830 Change-Id: I953dd0504bf508fd8082fae5db08b7b9fc47ea1f Reviewed-by: Allan Sandfeld Jensen Reviewed-by: Michael BrĂ¼ning --- src/core/api/qwebengineurlscheme.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/api/qwebengineurlscheme.cpp') diff --git a/src/core/api/qwebengineurlscheme.cpp b/src/core/api/qwebengineurlscheme.cpp index 4af89c616..1ab32aaad 100644 --- a/src/core/api/qwebengineurlscheme.cpp +++ b/src/core/api/qwebengineurlscheme.cpp @@ -162,6 +162,10 @@ public: this includes access from other schemes. The appropriate CORS headers are generated automatically by the QWebEngineUrlRequestJob class. By default only \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. */ QWebEngineUrlScheme::QWebEngineUrlScheme(QWebEngineUrlSchemePrivate *d) : d(d) {} -- cgit v1.2.1