Pick the fix
A WebView with a JS bridge that returns the auth token navigates to any link the user taps. What's the most important fix?
Hint 1 of 1
Who can call the bridge?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Restrict loads to trusted origins in shouldOverrideUrlLoading and remove the token from the bridge
Correct. Any page that loads can call the bridge, so limit both.
Why not the others?
- B Disable zoom. Not related.
- C Use a bigger WebView cache. Not related.
- D Call handler.proceed() on SSL errors. That makes it worse.