diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java index fefbcec..48f6846 100644 --- a/src/android/InAppBrowser.java +++ b/src/android/InAppBrowser.java @@ -809,6 +809,11 @@ public class InAppBrowser extends CordovaPlugin { CookieManager.getInstance().removeSessionCookie(); } + // Enable Thirdparty Cookies on >=Android 5.0 device + if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) { + CookieManager.getInstance().setAcceptThirdPartyCookies(inAppWebView,true); + } + inAppWebView.loadUrl(url); inAppWebView.setId(Integer.valueOf(6)); inAppWebView.getSettings().setLoadWithOverviewMode(true);