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

167
Views
XMLHttpRequest in nodejs connection with javascript error

I'm using node js to make a request,

var getdb = new XMLHttpRequest();
var url = "url";
getdb.open('GET', url, true);

getdb.onreadystatechange = function() {
    if(getdb.readyState == 4 && getdb.status == 200)
       console.log("conn ok");
}
getdb.send();

If I open the url in browser it works, but if I call it with code, this is the response:

This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support

The page is a simple php page with a db connection and some echo.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

i found the problem, my free web hoster (profreehost.com) had disabled the programmatly requests, because they doesn't wont any abuse.

about 4 years ago · Juan Pablo Isaza Report
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!