Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
See CB-1695
1. CDVViewController needs a UserAgent property that plugins can query, so they can set their NSURLRequest User-Agent to the same UserAgent, so they can take advantage of the white-list. Right now, any other network connection that is not part of the main Cordova UIWebView is excepted from the white-list with the changes in CB-1695.
2. Have a way for plugins to query the whitelist before sending out requests
3. The UA in (1) should be cached after being discovered (since it requires a costly UIWebView instantation the first time). Cache the iOS version as well, so that we invalidate the UA if the iOS version changes. Also, hook into locale change notifications, if a locale change happens, invalidate the cached UA value as well.
Attachments
Issue Links
- relates to
-
CB-1695 [iOS]: CDVURLProtocol should not apply whitelist to non-Cordova view controllers/requests
- Closed