区分浏览器请求和移动应用程序请求的最佳方法?
我的应用程序中有一些操作要求用户登录网站,而有些操作则需要“人”(基本上是移动应用程序用户)进行身份验证。为了知道我是否需要通过移动身份验证推送当前请求,我希望能够判断该请求是来自浏览器还是来自 iphone。
是否有请求标头或我可以查看的内容?
谢谢,马克斯
I have some actions in my app that require a user to have logged in on the website, and some that require a "person" (a mobile app user basically) to have authenticated. In order to know whether i need to push the current request through the mobile authentication, i'd like to be able to tell whether the request came from a browser or from an iphone for example.
Is there a request header or something i can look at for this?
thanks, max
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看 mobile_fu
take a look at mobile_fu