Override X-Requested-With header value in WebView requests (closes #6781)

This commit is contained in:
arkon
2022-04-02 10:49:42 -04:00
parent 041a6dd919
commit 996f770935
4 changed files with 19 additions and 3 deletions

View File

@@ -105,7 +105,6 @@ class WebViewActivity : BaseActivity() {
headers = source.headers.toMultimap().mapValues { it.value.getOrNull(0) ?: "" }.toMutableMap()
binding.webview.settings.userAgentString = source.headers["User-Agent"]
}
headers["X-Requested-With"] = WebViewUtil.REQUESTED_WITH
supportActionBar?.subtitle = url