Closed StuartPyper closed 2 years ago
It seems this is not possible on iOS and on Android only CORS-safelisted request headers are allowed: https://developer.mozilla.org/en-US/docs/Glossary/CORS-safelisted_request_header. This is a shame but it seems there is nothing react-native-inappbrowser will be able to do to get around it. Back to a WebView I go ;(
I want to be able to detect user by a custom user-agent.
In a webview I can add "applicationNameForUserAgent="xxx"" and it will append "xxx" to the end of the user-agent. How can I do similar with react-native-inappbrowser?
I have tried adding it via the headers option but I can't seem to get it to work using the key/value pairs.
Thanks.