cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-7539) Use local webserver option to load local HTML file from www
Date Mon, 15 Sep 2014 20:49:33 GMT


Shazron Abdullah commented on CB-7539:

I'm not so sure about the local proxy now and us automatically overwriting xhr, let's keep
it simple. This will break apps that rely on cross-origin restrictions *not to be on* like
in UIWebView, but their tests should detect this right away - going forward the servers they
connect to should be CORS compliant and allow null origins.

The local webserver should do one thing, and one thing only -- serve local assets from the
local www folder, that's it.

The local proxy can be a plugin that 3rd parties implement, and the dev explicitly installs.
I'm not sure we are the ones to implement it.

> Use local webserver option to load local HTML file from www
> -----------------------------------------------------------
>                 Key: CB-7539
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Priority: Blocker
> This workaround is because of this bug:
> (filed with Apple of course also)
> I'm still hoping that Apple fixes this in iOS 8.1, but we should have this as a contingency
> Create this as an included plugin, so it can be extracted later if need be.
> We need to secure access to the local webserver, probably through a session token in
the header, since background apps can have access to the webserver. The session token is passed
down to the initially loaded local page specified from the <content> tag in config.xml,
and should be used in the cordova.exec call. We would also need to implement local proxy support
, see CB-7348
> This all sounds more complex than it needs to be than just loading a file url -- wishing
Apple would just fix this in iOS 8.1 instead.

This message was sent by Atlassian JIRA

View raw message