Set user agent with WebView with react-native

后端 未结 9 1481
闹比i
闹比i 2021-02-19 13:26

I want to modify the user agent string in a WebView so that on the server side I can detect that the request has come from my react-native app. I want to do this using the sourc

9条回答
  •  后悔当初
    2021-02-19 14:06

    This is a terrible idea. Just use a custom header:

    X-MY-CUSTOM-HEADER = MyAppName. 
    

提交回复
热议问题