diff --git a/index.html b/index.html index 03b2675..314599a 100644 --- a/index.html +++ b/index.html @@ -184,12 +184,12 @@ } }); fetch('https://www.tall.wiki/gateway/qcp/v3.0/patient/aidRecord', { - headers: { + headers: new Headers({ 'Authorization': 'Bearer ' + that.token, 'Content-Type': 'application/json;charset=utf-8' - }, + }), method: 'POST', - mode: 'no-cors', + mode: 'cors', body: params }).then(function(response) { return response.json();