{ "id": "173778", "key": "AC-6291", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2019-06-19T07:52:32.000+0000", "labels": [ "8.0.1", "8.1.0.GA", "8.2.0.GA", "8.3.0", "9.0.0.RC", "ios", "webView" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-03-19T11:56:47.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I'm testing an app with sdk 8.0.1 but the webview component has changed (now is WKWebView) and fails to load a SPA with AngularJS ngRoute navigation, showing a cors error:\r\n\r\n_Cross origin requests are only supported for HTTP_\r\n\r\nThe app works fine with sdk 7.4.1.\r\nI think the problem is the WkWebView is missing property allowFileAccessFromFileURLs which seems to solve Cors issues.\r\n\r\n*To Reproduce*\r\n1 - Create a window containing a webview with url:'index.html'\r\n2 - Create index.html file containing an AngularJS single page application with angular version 1.4.7 and ngRoute navigation, for example:\r\n\r\n{code:java}\r\n\r\n
\r\n \r\n