use CookieSyncManager to sync cookies between API calls and WebView