I use .htaccess to protect the website with a password.
If I use html5 audio elements on this website, the iPad requires a website password with every reboot, although it is saved in the browser.
Only on iPad. Not rooted, all original ios. Tested with Chrome and Safari on iPad, always the same.
If there is no audio element on the page, no password is required.
This does not happen on Android Tablet or Firefox on Windows.
What can I program to prevent the iPad from asking for a password?
I am using the following code on this website.
<!DOCTYPE HTML> <html> <head> <title>Audio</title> </head> <body> <script> function play(){ var audio = document.getElementById("audio"); audio.play(); } </script> <input type="button" value="PLAY" onclick="play()"> <audio id="audio" src="./207.wav"></audio> </body> </html>
.htaccess:
AuthType Basic AuthName name123 AuthUserFile /somepath/.htpasswd require valid-user SetEnv no-gzip ExpiresActive On ExpiresDefault "access plus 1 seconds" ExpiresByType text/html "access plus 1 seconds" AddDefaultCharset UTF-8
source share