XMLHttpRequest status always 0

Hi guys I’m trying to create a synchronous fetch with XMLHttpRequest but the its status is always 0. Someone can help me. Thanks

    let FULL_URL = encodeURI("http://bonfry.com/wp-json/wp/v2/posts");

    let xHttp = new XMLHttpRequest();
    console.log("After Open -> "+xHttp.status); //return 0
    console.log("After Send -> " +xHttp.status);//return 0
    console.log("Result --> " + xHttp.responseText); //return null

Hi Simone,

XMLHttpRequest docs clearly state that synchronous requests are going away. Thus, Fuse implementation of XMHttpRequest does not support synchronous requests.

Join the async side, we have cookies! (star wars reference)