cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-10109) Allow WKWebView to proxy file:// url loading in XmlHttpRequest.open
Date Wed, 02 Dec 2015 00:03:11 GMT

     [ https://issues.apache.org/jira/browse/CB-10109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah updated CB-10109:
----------------------------------
    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 so they go to (1) with the actual url added
as a query param or path 

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

  was:
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.


> Allow WKWebView to proxy file:// url loading in XmlHttpRequest.open
> -------------------------------------------------------------------
>
>                 Key: CB-10109
>                 URL: https://issues.apache.org/jira/browse/CB-10109
>             Project: Apache Cordova
>          Issue Type: Wish
>          Components: Plugin WKWebViewEngine
>            Reporter: Shazron Abdullah
>
> 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 so they go to (1) with the actual url added
as a query param or path 
> The local webserver in (1) will route the requests using the appropriate handler, and
will need to utilize a secret to prevent unauthorized access.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message