{ "id": "121616", "key": "TIMOB-15653", "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:43:46.000+0000", "created": "2013-10-25T13:55:23.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:27.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": "Mozilla browsers (Firefox and Firefox OS) are handling XMLHttpRequests differently from other browsers tested as working (Safari, Chrome). XMLHttpRequests processed via Firefox are sent as a preflighted request with a method of OPTIONS. This causes a failed response from the server in use for the particular project I am working on.\r\n\r\nCORS has been setup on the server providing the data feed.\r\n\r\nI have been able to get a valid response by commenting out lines 12-23 of SDK/mobileweb/titanium/Ti/Network/HTTPClient.js (this._handles = [...]), forcing a plain/text Content-Type, and removing all custom headers from the request. However this results in no onLoad and therefore can only be observed via a web debugging proxy.\r\n\r\nI have discovered this while developing an app for the new Firefox OS, so a fix for this would be pertinent in making Titanium a viable choice for developers looking to build apps for Firefox OS.\r\n", "attachment": [], "flagged": false, "summary": "MobileWeb: Mozilla forces pre-flight of request with OPTIONS method, causing failure of XMLHttpRequest", "creator": { "name": "goodlime", "key": "goodlime", "displayName": "Julian Fraser", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "goodlime", "key": "goodlime", "displayName": "Julian Fraser", "active": true, "timeZone": "America/New_York" }, "environment": "CLI version 3.1.2\r\nTitanium SDK version 3.1.3.GA\r\nMac OS X 10.8.4", "comment": { "comments": [ { "id": "422779", "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:43:46.000+0000", "updated": "2017-06-26T18:43:46.000+0000" }, { "id": "436377", "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:27.000+0000", "updated": "2018-04-04T23:20:27.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }