{ "id": "109611", "key": "TIMOB-12709", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-26T18:40:36.000+0000", "created": "2013-02-12T20:16:06.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:34.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "When sending some data, we get a CORS error, but don't when sending no data.\r\n\r\n{code}\r\n// works\r\nvar payload={\"a\":\"1\", \"b\":\"2\", \"c\":\"testing\"};\r\nxhr.open('POST', 'http://' + env.hostname + ':9669?data=' + payload);\r\nxhr.send();\r\n\r\n// does not work\r\nxhr.open('POST', 'http://localhost:9669');\r\nxhr.send({\"a\":\"1\", \"b\":\"2\", \"c\":\"testing\"});\r\n{code}\r\n\r\nQ&A question: http://developer.appcelerator.com/question/148126/httpclient-post-data-mobile-web", "attachment": [], "flagged": false, "summary": "MobileWeb: HTTPClient send() throws CORS errors when posting some data, but works with no data", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "422767", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Marking ticket as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T18:40:36.000+0000", "updated": "2017-06-26T18:40:36.000+0000" }, { "id": "436425", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:34.000+0000", "updated": "2018-04-04T23:20:34.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }