How can Google detect a request is from a WebView?

后端 未结 6 1721
青春惊慌失措
青春惊慌失措 2021-02-12 14:05

Google announced that they \"will no longer allow OAuth requests to Google in embedded browsers known as \'web-views\'\".

In Android, requests from WebViews get

6条回答
  •  一整个雨季
    2021-02-12 14:29

    All http requests sent through a webview have X-Requested-With header present which can be used to detect that the request is from webview.

    X-Requested-With: the.app.packageName

提交回复
热议问题