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

Enable cross origin policy for custom scemes

    XMLWordPrintable

Details

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes