add id for tag html login

This commit is contained in:
2022-07-20 20:24:05 +02:00
parent 9c3d4abe8b
commit eb36c8d386
3 changed files with 11 additions and 5 deletions

View File

@@ -1 +1 @@
const instance = axios.create({ baseURL: 'http://localhost:8080/api'});
const instance = axios.create({ baseURL: 'http://localhost:8083/api'});

View File

@@ -1 +1,5 @@
instance.get("token", { auth:{username:"peter93", password:"toto"}}).then(function(response) { console.log(response) });
instance.get("token", { withCredentials: true})
.then(function(response) { console.log(response) })
.catch(function(error){
});