[TIMOB-12709] MobileWeb: HTTPClient send() throws CORS errors when posting some data, but works with no data
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Won't Fix |
| Resolution Date | 2017-06-26T18:40:36.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | n/a |
| Components | MobileWeb |
| Labels | n/a |
| Reporter | Chris Barber |
| Assignee | Chris Barber |
| Created | 2013-02-12T20:16:06.000+0000 |
| Updated | 2018-04-04T23:20:34.000+0000 |
Description
When sending some data, we get a CORS error, but don't when sending no data.
// works
var payload={"a":"1", "b":"2", "c":"testing"};
xhr.open('POST', 'http://' + env.hostname + ':9669?data=' + payload);
xhr.send();
// does not work
xhr.open('POST', 'http://localhost:9669');
xhr.send({"a":"1", "b":"2", "c":"testing"});
Q&A question: http://developer.appcelerator.com/question/148126/httpclient-post-data-mobile-web
Marking ticket as "Won't Fix" as MobileWeb has been deprecated.
Closing as will not fix.