Hi,
I'm spending the lead up to Christmas experimenting with linking the AtoM API up to a react application. I'm relatively inexperienced with React and completely inexperienced with the AtoM API so if this turns out to be a react issue as opposed to an AtoM issue then apologies in advance. I'm basically falling at the first hurdle.
My test request is from my app on localhost:
Authorization: 'Basic xxxxxxxxx',
mode: 'no-cors'
}).then(res => {
console.log("res: ", res);
}).catch(error => console.log(error));
The above returns the error:
net::ERR_ABORTED 401 (Unauthorized)
removing mode: 'no-cors' from the request params returns:
Does anyone have any pointers here - am I missing something blindingly obvious or am I nearly there? Any help appreciated.
Thanks in advance
Stef