Category : ajax

We’ve created one EXE file using the CPP language and create one API like http://localhost:5800/get-id/. when I open in browser return me the perfect output. When I used fetch in HTML > script page, then getting No "Access-Control-Allow-Origin" header is present on the requested resource. Code1: fetch("http://localhost:5800/get-id/", {method: ‘GET’).then(function(response) { console.log(response.text()); }).catch(function(error) { console.log(‘Request failed’, ..

Read more