Override X-Requested-With header value in WebView requests (closes #6781)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user