uinames icon indicating copy to clipboard operation
uinames copied to clipboard

Unhandled cors random behavior

Open zeroidentidad opened this issue 5 years ago • 0 comments

Sometimes http request get status failed. Then I change to https captura

As above, now https request get status failed. Then I change to http captura_1

I tested setting url radomly in request as follow

let urls = [
    "http://uinames.com/api/?",
    "https://uinames.com/api/?"
];
let url = urls[Math.floor(Math.random() * urls.length)];
if (cantidad !== '') {
    url += `amount=${cantidad}&`;
}

Getting captura_2

zeroidentidad avatar Aug 17 '19 02:08 zeroidentidad