Details
-
Suggestion
-
Resolution: Duplicate
-
P2: Important
-
None
-
None
Description
It is not possible to make a cross origin request through custom url schemes. WebEngine throws this warning when attempting to do so:
* XMLHttpRequest cannot load xxx://localhost/something. Cross origin requests are only supported for protocol schemes: http, data, chrome, https.
There does not seem to be any way to enable CORS for custom schemes through Qt APIs, but blink does have an API for it (WebSecurityPolicy::registerURLSchemeAsCORSEnabled). Perhaps this could be exposed.
Attachments
Issue Links
- relates to
-
QTBUG-65751 QtWebEngine: Custom url schemes cannot access file urls
- Closed
-
QTBUG-62536 WebSockets not supported when loaded from non-default scheme
- Closed