I want to make an app which will open a website inside the app. All code works fine with normal websites, but I also want to open a website which is protected by username and password. In normal browser (pc or smartphone) there will appear a popup to enter the username and password (Confirm by “OK” or cancel by “Cancel”).
In my app, it opens the URL but there is no popup where I can enter my username and password. It directly shows “401 Authorization Required”. This is the same message when you “cancel” the popup in normal browser.
How can I fix this and:
make the popup visible?
after that, is it possible to automatically sign in and remember the username and password?
I tried this solution, but ik doesn’t work… I think the “document.getElementById” is not working. How can I figure out the properties of the popup element?
Username and password were send by “Header - Authorization”. I found a tutorial with nearly the same issue: https://puravidaapps.com/filedownload.php => “File Download from a Restricted Area”
I’m getting close, but can’t get the website shown in webviewer. I can add the Header Request in Web component, but when I open the URL within the webviewer compenent, it think it doesn’t do anything with the header request. The tutorial uses the header request for getting a image, but I want to show the website within webviewer component.
Can anyone explain to me how I could get the website (http://restricted.puravidaapps.com/) showed in webviewer?