Skip to content

Unhandled cors random behavior #134

@zeroidentidad

Description

@zeroidentidad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions