[jira] [Updated] (CB-7425) AJAX blocked when using cdvfile

2015-11-05 Thread Jason Ginchereau (JIRA)

 [ 
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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-7425) AJAX blocked when using cdvfile

2015-08-31 Thread Shazron Abdullah (JIRA)

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

Shazron Abdullah updated CB-7425:
-
Component/s: Plugin File

> 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
>
> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-7425) AJAX blocked when using cdvfile

2014-08-28 Thread 165537 (JIRA)

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

165537 updated CB-7425:
---

Environment: Android 4.1.2 & 4.4.2, Phonegap 3.4 (CORDOVA_JS_BUILD_LABEL = 
'3.4.0')  (was: Android 4.2.2, Phonegap 3.4 (CORDOVA_JS_BUILD_LABEL = '3.4.0'))

> AJAX blocked when using cdvfile
> ---
>
> Key: CB-7425
> URL: https://issues.apache.org/jira/browse/CB-7425
> Project: Apache Cordova
>  Issue Type: Bug
>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
>
> 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.2#6252)