From e3c05368fb062c227521b63b1fc9f7c6c5670977 Mon Sep 17 00:00:00 2001 From: "eoghan.conlon" Date: Tue, 1 Aug 2023 12:53:04 +0100 Subject: [PATCH] [Modify user] Fix. Password form now sets mode to be cors --- src/password.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/password.html b/src/password.html index 4892b46..046261b 100644 --- a/src/password.html +++ b/src/password.html @@ -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 = "Success";