Should I use custom headers or useragent header to send device informations to the server

前端 未结 1 720
北恋
北恋 2021-02-14 17:22

Every time I send a API request to my server I want send informations like device type and OS version (from my mobile app). My first thought is to use User Agent but I wonder if

1条回答
  •  野的像风
    2021-02-14 17:29

    I am using the X-Device HTTP Header.

    Works well for the most part, however I have noticed that some requests from behind a proxy seem to be stripping the data from that header.

    0 讨论(0)
提交回复
热议问题