2015-09-18 39 views

回答

0

我做了以下事情,当我检查所做的请求时,看起来我的“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在自定义选项卡进行认证。

相关问题