I configured keycloak with ExpressJS 以及 would like to check if everything is working correctly. For this, I created these two scripts. One is an axios script to send the request to the server, 以及 the other is a server side script. script to h以及le the request. But it doesn t redirect me to the keycloak login page as I expected. I got an error instead Here are some screenshots: THANKS YOU
申请使用的文字如下:
const PORT = 3001
const HOST = `http://localhost:${PORT}`;
/**
* This function aim is to log the user in
* @param user the user username
* @param pwd the user password
**/
export function loginRequest(user, pwd,) {
axios.post(`${HOST}/ `, {
email: `${user}`,
pwd: `${pwd}`
})
.then(function (res) {
return res.data
})
.catch(function(err) {
console.log( ERROR while sending login request : , err);
})
return false;
}
There is my front-ent where am getting the error. i just use the button to send request on click
以及
https://i.stack.imgur.com/atxB2.png”rel=“nofollow noreferer”> 我的关键组合是。
i 试图在互联网上发现的许多东西,如在网络来源领域添加+,但并不奏效。