You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Matthew Ronemous (JIRA)" <ji...@apache.org> on 2013/08/30 02:11:53 UTC
[jira] [Created] (CB-4701) Local file permission error when running
www from remote site.
Matthew Ronemous created CB-4701:
------------------------------------
Summary: Local file permission error when running www from remote site.
Key: CB-4701
URL: https://issues.apache.org/jira/browse/CB-4701
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 3.0.0
Environment: Tomcat Server: JSP legacy website
Reporter: Matthew Ronemous
Assignee: Joe Bowser
Priority: Minor
http://stackoverflow.com/questions/18138605/permission-error-when-accessing-local-assets-via-remote-website
My android Cordova project simply references a remote server to get its web content.
window.location = "http://SERVER/Page.html";
In 2.9 I was able to reference file:///android_asset/ to access local files. In config.xml I had <access origin="*" /> and <access origin="http://127.0.0.1*"/> (not certain if both were necessary but it worked).
In 3.0 I get a permission error when trying to access the files. What is the correct configuration to tell Cordova 3 to enable local file access? In this case I'm trying to host all of the Cordova files cordova.js, ect... as local file assets.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira