use only port 8080 in the new version
This commit is contained in:
@@ -33,22 +33,12 @@ const verifyClient = async (info, callback) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Authenticate with Laravel backend
|
// Authenticate with Laravel backend
|
||||||
let response;
|
const response = await axios.post(`http://coolify:8080/terminal/auth`, null, {
|
||||||
try {
|
|
||||||
response = await axios.post(`http://coolify:8080/terminal/auth`, null, {
|
|
||||||
headers: {
|
headers: {
|
||||||
'Cookie': `${sessionCookieName}=${laravelSession}`,
|
'Cookie': `${sessionCookieName}=${laravelSession}`,
|
||||||
'X-XSRF-TOKEN': xsrfToken
|
'X-XSRF-TOKEN': xsrfToken
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} catch (error) {
|
|
||||||
response = await axios.post(`http://coolify/terminal/auth`, null, {
|
|
||||||
headers: {
|
|
||||||
'Cookie': `${sessionCookieName}=${laravelSession}`,
|
|
||||||
'X-XSRF-TOKEN': xsrfToken
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
// Authentication successful
|
// Authentication successful
|
||||||
|
|||||||
Reference in New Issue
Block a user