1var postData = {
2 email: "test@test.com",
3 password: "password"
4};
5
6let axiosConfig = {
7 headers: {
8 'Content-Type': 'application/json;charset=UTF-8',
9 "Access-Control-Allow-Origin": "*",
10 }
11};
12
13axios.post('http://<host>:<port>/<path>', postData, axiosConfig)
14.then((res) => {
15 console.log("RESPONSE RECEIVED: ", res);
16})
17.catch((err) => {
18 console.log("AXIOS ERROR: ", err);
19})