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

Jason Ginchereau updated CB-7425:
---------------------------------
    Labels: Android  (was: )

> AJAX blocked when using cdvfile
> -------------------------------
>
>                 Key: CB-7425
>                 URL: https://issues.apache.org/jira/browse/CB-7425
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 3.4.0
>         Environment: Android 4.1.2 & 4.4.2, Phonegap 3.4 
> (CORDOVA_JS_BUILD_LABEL = '3.4.0')
>            Reporter: 165537
>              Labels: Android
>
> Doing AJAX from packaged files (eg location 
> "file:///android_asset/www/index.html") works well, but doing it from local 
> files (eg "cdvfile://localhost/persistent/TEST/index.html") does not.
> I guess it has to do with the same-origin policy. Is there anything that can 
> be done to make it work?
> If I were reading files from the internet, I would set the web server to add 
> some "Access-Control-Allow-Origin" headers, but here there's no web server. 
> Using jsonp would work, but it'd mean changing the code in the server and in 
> the app.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to