[Modify user] Fix. Password form now sets mode to be cors

This commit is contained in:
eoghan.conlon 2023-08-01 12:53:04 +01:00
parent f586d57784
commit e3c05368fb

View file

@ -35,7 +35,8 @@
const object = {user: user, pass: pass, field: "userPassword", value: newPW}
fetch('https://api.sso.skynet.ie/ldap/update', {
method: 'POST',
body: JSON.stringify(object)
body: JSON.stringify(object),
mode: "cors"
}).then(res => {
if(res.status === 200) {
document.getElementById('formStatus').innerHTML = "<span style='background-color: green; color: white'>Success</span>";