Использовать css text-security: диск без использования type = password.
html
<input type='text' name='user' autocomplete='off' />
<input type='text' name='pass' autocomplete='off' class='secure' />
or
<form autocomplete='off'>
<input type='text' name='user' />
<input type='text' name='pass' class='secure' />
</form>
css
input.secure {
text-security: disc;
-webkit-text-security: disc;
}
Можете ли вы попробовать приведенный ниже код, я думаю, что вы пропустили добавление {} и добавили еще несколько изменений, пожалуйста, посмотрите на него.
static fetchCurrentServices(){
return fetch("http://localhost:8080/portal-backend/services", {
mode: "no-cors",
method: "GET" ,
headers: {
"Access-Control-Allow-Origin": "*",
"Content-Type": "application/json"
}
}).then(res =>{
return new Promise((resolve) => {
if (res) {
res.json().then(json => resolve(json)).catch(() => resolve(null))
} else {
resolve(null)
}
})
}).catch(function (ex) {
console.log('parsing failed', ex)
});
}