use only port 8080 in the new version
This commit is contained in:
parent
02976e454a
commit
b1759bf25d
1 changed files with 6 additions and 16 deletions
|
|
@ -33,22 +33,12 @@ const verifyClient = async (info, callback) => {
|
|||
|
||||
try {
|
||||
// Authenticate with Laravel backend
|
||||
let response;
|
||||
try {
|
||||
response = await axios.post(`http://coolify:8080/terminal/auth`, null, {
|
||||
headers: {
|
||||
'Cookie': `${sessionCookieName}=${laravelSession}`,
|
||||
'X-XSRF-TOKEN': xsrfToken
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
response = await axios.post(`http://coolify/terminal/auth`, null, {
|
||||
headers: {
|
||||
'Cookie': `${sessionCookieName}=${laravelSession}`,
|
||||
'X-XSRF-TOKEN': xsrfToken
|
||||
},
|
||||
});
|
||||
}
|
||||
const response = await axios.post(`http://coolify:8080/terminal/auth`, null, {
|
||||
headers: {
|
||||
'Cookie': `${sessionCookieName}=${laravelSession}`,
|
||||
'X-XSRF-TOKEN': xsrfToken
|
||||
},
|
||||
});
|
||||
|
||||
if (response.status === 200) {
|
||||
// Authentication successful
|
||||
|
|
|
|||
Loading…
Reference in a new issue