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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -