2015-09-18 45 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在自定義選項卡進行認證。