Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
Why does my node.js app fail to interact with the back-end on Cpanel when i make a request. I need urgent answers please
Client-Side Code:
       $.ajax({
            url: '/testdb',
            method: 'POST',
            contentType: 'application/json',
            data: JSON.stringify({
                mssg: "idea"
            }),
        success: ({mssg}) => {
            if(mssg === true){
                
                //location.replace(document.referrer);
                    alert("success")
                //var readerId = document.querySelector(".checkProfile").innerHTML.replace(/\s/g, '');

                //location.assign('index');
            }else{
                alert("failure")
            }
        }

        })

this is the client code when making request. But the server code does not receive the request on cpanel, and i am sure it works on localhost.

Server-Side Code

router.post("/testdb", parser, test);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!