Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12709] MobileWeb: HTTPClient send() throws CORS errors when posting some data, but works with no data

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-26T18:40:36.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2013-02-12T20:16:06.000+0000
Updated2018-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

Comments

  1. Lee Morris 2017-06-26

    Marking ticket as "Won't Fix" as MobileWeb has been deprecated.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source