Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10109

Allow WKWebView to proxy file:// url loading in XmlHttpRequest.open

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Ionic

      Description

      Because of CORS, you can only open requests using http*:// schemes, not file.

      Ultimately this might be a new plugin. The plugin needs to:

      1. Run a local webserver
      2. Proxy XmlHttpRequest.open and rewrite urls that go to (1)

      The local webserver in (1) will route the requests using the appropriate handler, and will need to utilize a secret to prevent unauthorized access.

      Something like this: https://github.com/phonegap/connect-phonegap/blob/master/res/middleware/proxy.js

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                shazron Shazron Abdullah
              • Votes:
                7 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: