You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jesse MacFadyen (JIRA)" <ji...@apache.org> on 2016/10/21 21:21:58 UTC
[jira] [Commented] (CB-12049) Cordova iOS user-agent string has a
unique number appended
[ https://issues.apache.org/jira/browse/CB-12049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15596407#comment-15596407 ]
Jesse MacFadyen commented on CB-12049:
--------------------------------------
This code is no longer required here, it is a remnant from a time when we needed to use xhr as a bridge. (because security)
We can safely lose the addition to the user agent string.
Note: relying on any particular string in the user agent is an anti-pattern -jm
> Cordova iOS user-agent string has a unique number appended
> ----------------------------------------------------------
>
> Key: CB-12049
> URL: https://issues.apache.org/jira/browse/CB-12049
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Jay Caines-Gooby
> Priority: Trivial
> Labels: EasyFix
>
> I noticed that all iOS user-agent strings were being logged for the server-side portion of an app we built with an integer appended:
> Mozilla/5.0 (iPad; CPU OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Mobile/14A456 (5668672384)
> Mozilla/5.0 (iPad; CPU OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Mobile/14A456 (4299221040)
> Mozilla/5.0 (iPad; CPU OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Mobile/14A456 (4299251504)
> This seems to originate from:
> https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/Public/CDVViewController.m#L495L496
> Is this still needed for any reason?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org