javascript - Intercepting POST request in a WebView -
i'm working on app has login form loaded inside webview. login form returned token in cookie, retrieved cookiemanager , cached locally.
after api change, token needed being returned inside request body of post request made app (not server). i've tried intercepting every call made through webview using okhttp (following https://artemzin.com/blog/use-okhttp-to-load-resources-for-webview/), redundant since aren't aware of headers, or data make request.
it's worth mentioning min api version 14, therefore can't rely on js injection either (which requires min version of 17).
Comments
Post a Comment