[
https://issues.apache.org/jira/browse/CB-10109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15185315#comment-15185315
]
Jim Trainor commented on CB-10109:
----------------------------------
I believe it is your case number two.
I am not loading from a remote host. All my javascript, html, and css, files
are static. When I use the WKWebView plugin then Polymer won't load because it
tries load a *local* html file using and XMLHttpRequest on a file:// url. The
XHR request originates in Google's Polymer web components js library. It is
loading Polymer elements at that point. I interpret this as the same behaviour
that was reported by Frederik Wessberg insofar as interaction with Polymer is
concerned.
> 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
> Labels: wkwebview-known-issues
>
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]