You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Horst Klier (JIRA)" <ji...@apache.org> on 2012/07/19 12:29:35 UTC
[jira] [Created] (CB-1101) Origin policy is broken on Android 4.1
Horst Klier created CB-1101:
-------------------------------
Summary: Origin policy is broken on Android 4.1
Key: CB-1101
URL: https://issues.apache.org/jira/browse/CB-1101
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: Master
Environment: Android 4.1
Reporter: Horst Klier
Assignee: Joe Bowser
Priority: Blocker
At startup of an app on Android 4.1:
07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
On older android versions all works fine.
Tested with Cordova 1.8.1 and 2.0.0rc1
Tested with emulator and Galaxy Nexus with Jelly Bean.
A similar problem is described here:
http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser reopened CB-1101:
----------------------------
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0, 2.0.0
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Fix For: 2.1.0
>
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Horst Klier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418994#comment-13418994 ]
Horst Klier commented on CB-1101:
---------------------------------
Yes. You are right. As i posted it, i didnt know how to fix.
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Priority: Blocker
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (CB-1101) Origin policy is broken on
Android 4.1
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418339#comment-13418339 ]
Joe Bowser edited comment on CB-1101 at 7/19/12 3:01 PM:
---------------------------------------------------------
Unable to reproduce on mobile-spec on Android 4.1.1 with my Galaxy Nexus, closing! Tested with the Android XHR tests as well.
was (Author: bowserj):
Unable to reproduce on mobile-spec on Android 4.1.1 with my Galaxy Nexus, closing!
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Priority: Blocker
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-1101.
----------------------------
Resolution: Cannot Reproduce
Unable to reproduce on mobile-spec on Android 4.1.1 with my Galaxy Nexus, closing!
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Priority: Blocker
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (CB-1101) Origin policy is broken on
Android 4.1
Posted by "Theodoor van Donge (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425633#comment-13425633 ]
Theodoor van Donge edited comment on CB-1101 at 7/31/12 9:22 AM:
-----------------------------------------------------------------
I have the same problem as well. When I start an app, I got this message in the console:
{code}
07-31 11:16:50.340: E/Web Console(7261): XMLHttpRequest cannot load http://127.0.0.1:58497/e5708de1-ccc2-4044-94df-5521654d824d. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
{code}
And i got the same problem by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
{code}
Or by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
{code}
Extra note:
I use this:
{code:xml}
<access origin=".*"/> <!-- allow local pages -->
{code}
was (Author: thvd):
I have the same problem as well. When I start an app, I got this message in the console:
{code}
07-31 11:16:50.340: E/Web Console(7261): XMLHttpRequest cannot load http://127.0.0.1:58497/e5708de1-ccc2-4044-94df-5521654d824d. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
{code}
And i got the same problem by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
{code}
Or by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
{code}
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Priority: Blocker
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Horst Klier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418480#comment-13418480 ]
Horst Klier commented on CB-1101:
---------------------------------
Sorry, I forgot one detail. You have to set android:targetSdkVersion="16" in the manifest to get the error.
I have taken the phonegap example and changed
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="16" />
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Priority: Blocker
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser updated CB-1101:
---------------------------
Affects Version/s: (was: Master)
2.0.0
1.9.0
Fix Version/s: 2.1.0
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0, 2.0.0
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Fix For: 2.1.0
>
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Theodoor van Donge (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425633#comment-13425633 ]
Theodoor van Donge commented on CB-1101:
----------------------------------------
I have the same problem as well. When I start an app, I got this message in the console:
{code:xml}
07-31 11:16:50.340: E/Web Console(7261): XMLHttpRequest cannot load http://127.0.0.1:58497/e5708de1-ccc2-4044-94df-5521654d824d. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
{code}
And i got the same problem by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
{code:xml}
Or by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
{code:xml}
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Priority: Blocker
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418573#comment-13418573 ]
Joe Bowser commented on CB-1101:
--------------------------------
If an AndroidManifest change can fix it, it's not a Blocker
-- Posted from Bugbox for Android
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Priority: Blocker
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-1101.
----------------------------
Resolution: Fixed
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0, 2.0.0
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Fix For: 2.1.0
>
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (CB-1101) Origin policy is broken on
Android 4.1
Posted by "Theodoor van Donge (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425633#comment-13425633 ]
Theodoor van Donge edited comment on CB-1101 at 7/31/12 9:21 AM:
-----------------------------------------------------------------
I have the same problem as well. When I start an app, I got this message in the console:
{code}
07-31 11:16:50.340: E/Web Console(7261): XMLHttpRequest cannot load http://127.0.0.1:58497/e5708de1-ccc2-4044-94df-5521654d824d. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
{code}
And i got the same problem by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
{code}
Or by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
{code}
was (Author: thvd):
I have the same problem as well. When I start an app, I got this message in the console:
{code:xml}
07-31 11:16:50.340: E/Web Console(7261): XMLHttpRequest cannot load http://127.0.0.1:58497/e5708de1-ccc2-4044-94df-5521654d824d. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
{code}
And i got the same problem by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
{code}
Or by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
{code}
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Priority: Blocker
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser updated CB-1101:
---------------------------
Description:
At startup of an app on Android 4.1:
07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
On older android versions all works fine.
Tested with Cordova 1.8.1 and 2.0.0rc1
Tested with emulator and Galaxy Nexus with Jelly Bean.
A similar problem is described here:
http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
-- Posted from Bugbox for Android
was:
At startup of an app on Android 4.1:
07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
On older android versions all works fine.
Tested with Cordova 1.8.1 and 2.0.0rc1
Tested with emulator and Galaxy Nexus with Jelly Bean.
A similar problem is described here:
http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Priority: Blocker
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser reopened CB-1101:
----------------------------
Apparently this is broken if you use a wildcard after a period. Of course, by default localhost is whitelisted. It doesn't make any sense to not whitelist localhost, IMO.
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-1101.
----------------------------
Resolution: Fixed
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0, 2.0.0
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Fix For: 2.1.0
>
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1101) Origin policy is broken on Android 4.1
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser updated CB-1101:
---------------------------
Priority: Major (was: Blocker)
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (CB-1101) Origin policy is broken on
Android 4.1
Posted by "Theodoor van Donge (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425633#comment-13425633 ]
Theodoor van Donge edited comment on CB-1101 at 7/31/12 9:20 AM:
-----------------------------------------------------------------
I have the same problem as well. When I start an app, I got this message in the console:
{code:xml}
07-31 11:16:50.340: E/Web Console(7261): XMLHttpRequest cannot load http://127.0.0.1:58497/e5708de1-ccc2-4044-94df-5521654d824d. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
{code}
And i got the same problem by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
{code}
Or by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
{code}
was (Author: thvd):
I have the same problem as well. When I start an app, I got this message in the console:
{code:xml}
07-31 11:16:50.340: E/Web Console(7261): XMLHttpRequest cannot load http://127.0.0.1:58497/e5708de1-ccc2-4044-94df-5521654d824d. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
{code}
And i got the same problem by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
{code:xml}
Or by using:
{code:xml}
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
{code:xml}
> Origin policy is broken on Android 4.1
> --------------------------------------
>
> Key: CB-1101
> URL: https://issues.apache.org/jira/browse/CB-1101
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master
> Environment: Android 4.1
> Reporter: Horst Klier
> Assignee: Joe Bowser
> Priority: Blocker
>
> At startup of an app on Android 4.1:
> 07-19 10:14:43.341: E/Web Console(935): XMLHttpRequest cannot load http://127.0.0.1:37440/f97c255c-2ede-4165-9fb8-f2d613736c14. Origin null is not allowed by Access-Control-Allow-Origin. at null:1
> Every request with XMLHttpRequest gets the same error. It doesent matter what origin is set in cordova.xml.
> On older android versions all works fine.
> Tested with Cordova 1.8.1 and 2.0.0rc1
> Tested with emulator and Galaxy Nexus with Jelly Bean.
> A similar problem is described here:
> http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1
> -- Posted from Bugbox for Android
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira