{ "id": "87023", "key": "TIMOB-7825", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-19T22:44:49.000+0000", "created": "2012-02-27T11:20:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-04T00:17:31.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": "h1. Feature\r\nTwo properties are needed for a particular instance of cross domain requesting:\r\n- Expose the withCredentials property of XMLHttpRequest via HTTPClient.\r\n- Allow overriding or excluding the UserAgent request header via a userAgent property passed in the constructor.\r\n\r\nh2. Why\r\nFor some cross domain requests, these properties need to be set, or the request won't be valid. (Cookies and authorization need to be included, and the server doesn't accept the UserAgent header.)", "attachment": [], "flagged": false, "summary": "MobileWeb: Expose withCredentials and userAgent on HTTPClient", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "184366", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "PR sent: https://github.com/appcelerator/titanium_mobile/pull/1519", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-02-27T11:46:17.000+0000", "updated": "2012-02-27T11:46:17.000+0000" }, { "id": "184368", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Do we need this? We've been testing with cross-domain XHR and it works as long as the server has properly configured CORS (cross-origin resource sharing).\r\n\r\nFurthermore, this should probably be implemented as a property, not a method. A \"withCreditials\" will automatically create the setter/getter method.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-02-27T11:49:47.000+0000", "updated": "2012-02-27T12:09:05.000+0000" }, { "id": "184374", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Is there any reason we can't always set setWithCredentials('true')?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-02-27T12:06:46.000+0000", "updated": "2012-02-27T12:06:46.000+0000" }, { "id": "184375", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "What is the fallback for browsers that don't support XHR2 (i.e. support for setWithCredentials())?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-02-27T12:07:17.000+0000", "updated": "2012-02-27T12:07:17.000+0000" }, { "id": "184378", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "PR updated per your comments.\r\n\r\nTo the best of my knowledge, browsers that don't support XHR2 will ignore the property. We probably could set withCredentials to true all the time, but I think it would only be a problem if the server wasn't sending \"Access-Control-Allow-Credentials: true\".", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-02-27T12:28:40.000+0000", "updated": "2012-02-27T12:28:40.000+0000" }, { "id": "187240", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1749\r\n\r\nNote: we removed support for Ti.userAgent entirely, and are no longer setting the \"UserAgent\" header internally.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T15:41:52.000+0000", "updated": "2012-03-19T15:41:52.000+0000" }, { "id": "409227", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to MobileWeb no longer being supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-04T00:17:31.000+0000", "updated": "2017-03-04T00:17:31.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }