I use .htaccess to protect a website with a password.
If i use html5 audio elements on that website my Ipad requires the website password at each reload, although it's 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, it doesn't require the password.
This doesn't happen on an Android Tablet or Firefox in Windows.
What can i program to prevent the Ipad asking for the password?
I use the following code from 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>
The .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