2
以前的问题question意味着更改Cookie Jar是不可能的。是否至少有一种方法可以在webcall的头部传递参数,例如:用于身份验证。在Chrome自定义选项卡的标题中插入参数
以前的问题question意味着更改Cookie Jar是不可能的。是否至少有一种方法可以在webcall的头部传递参数,例如:用于身份验证。在Chrome自定义选项卡的标题中插入参数
我做了以下事情,当我检查所做的请求时,看起来我的“Cookie”标题正在被Chrome自定义标签取代,即使我的“值”标头经过。
Bundle headersBundle = new Bundle();
headersBundle.putString("Value", value);
headersBundle.putString("Cookie", cookie);
CustomTabsIntent customTabsIntent = CustomTabsIntent.Builder().build();
customTabsIntent.intent.putExtra(android.provider.Browser.EXTRA_HEADERS, headersBundle);
intent.launchUrl(context, uri);
This answer不提供源代码,但它说,它不可能改变目前在Chrome自定义选项卡饼干罐。
编辑:
而且this answer建议使用Smart Lock for Passwords on Android在自定义选项卡进行认证。