I am testing the basic authentication page on my website. It works perfectly fine in real-time testing on emulators but getting “unauthorized” error in the WebView mode. How to bypass this error?
Hello!
The WebView mode doesn’t give the basic authentication pop-up, instead, it gives the “unauthorized” error.
To bypass this, you can simply pass the username and password in the URL and it will work completely fine in the WebView mode as well.
Example:
https://admin:pass@samplebasicauthwebsite.com , where the username is “admin” and password is “pass”.
Please pass the URL in this way and it will work for you.
Have a great day!
1 Like