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

161
Views
XMLHttpRequest not working on browsers on iOS

I made a simple two-button interface in html. These buttons send a GET request to a local server.

It works perfectly on browsers on both Windows and MacOS, as well as Android devices...but not in any browser on iOS (iphone/ipad).

Here is the function:

function toggle() {
let xhr = new XMLHttpRequest();
xhr.open('GET', './RemoteCommands/?SetCuelistPlayToggle=', true);
xhr.setRequestHeader("Cache-Control", "no-cache, no-store, max-age=0, must-revalidate");
xhr.onload = function (e) {
  if (xhr.readyState === 4) {
    if (xhr.status === 200) {
      console.log(xhr.responseText);
    } else {
      console.error(xhr.statusText);
    }
  }
};
xhr.onerror = function (e) {
  console.error(xhr.statusText);
};
xhr.send();
}
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!