Wednesday, November 8, 2017

Android - Extrac SameSite=Strict cookie from Webview or URL

Leave a Comment

I'm using the following code within the onPageFinished() of a WebViewClient to read the cookies . But some cookies are set "SameSite=Strict", which I cannot get using the method below:

 @Override  public void onPageFinished(WebView view, String url){      String cookies = CookieManager.getInstance().getCookie(url);      Log.d(TAG, "All the cookies in a string:" + cookies);  } 

Can anybody tell me how to get the cookies which are set "SameSite=Strict" ?

1 Answers

Answers 1

It is officially a bug in Chromium and needs to be (hopefully will be) fixed there.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment