Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62473

Enable cross origin policy for custom scemes

XMLWordPrintable

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            viengelm Viktor Engelmann
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes