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
@@ -101,7 +101,6 @@ class CloudflareInterceptor(private val context: Context) : Interceptor {
val origRequestUrl = request.url.toString()
val headers = request.headers.toMultimap().mapValues { it.value.getOrNull(0) ?: "" }.toMutableMap()
headers["X-Requested-With"] = WebViewUtil.REQUESTED_WITH
executor.execute {
val webview = WebView(context)