Skip to content

CORS Errors do not fail gracefully #133

@Slowlearneruk

Description

@Slowlearneruk

If the request falls outside of the content security policy then we get an unhandled exception thrown at:

xhr.open('GET',`` url, true);

I was able to get a more graceful response by replacing it with:

try {
xhr.open('GET', url, true);
} catch(cException) {
if (errback) {
errback(cException);
return;
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions