Skip to content

Triggering CORS pre-flighting on firefox #5

@DanielHeath

Description

@DanielHeath

The x-requested-with header set in https://github.com/jedmao/iso-http/blob/master/lib/browser/Http.ts#L18 causes firefox to perform a CORS request where it otherwise wouldn't need to.

This adds ~100ms to XHR requests for mobile users. Does it make sense for clients that want this behavior to specify it themselves rather than baking it into the library?

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