How to prevent the "Authentication Required" window from appearing?

I have a Java applet that is included on a page in a directory protected by a password through a .htaccess file. When browsing the pages in this directory, I naturally must authenticate at the beginning of a new session, but the problem is that this Java “Authentication Required” appears every time the page loads.

I thought that perhaps placing the applet outside the password protected directory might solve the problem, but not the joy.

Any idea what can be done to prevent the Authentication Required window from appearing?

Thanks!

+4
source share
2 answers

As much as I would like, I think this question is a duplicate (the Applet displays the login dialog if basic authentication is used ). I also believe that there is currently no workaround, except that it extracts the jar file from the htaccess protected area of ​​the website.

+2
source

How about adding a .htpasswd file and setting java to authenticate with this?

I could provide a sample if you expand your question, including the source code and possibly the directory tree.

+1
source

Source: https://habr.com/ru/post/1439263/


All Articles