Skip to content

Due to API key being in header, all requests are pre-flighted, increasing latency #2

@corneliusroemer

Description

@corneliusroemer

I was wondering why all my requests to the API were preceded by an OPTIONS request, before the actual GET request.

This seemed wasteful and I couldn't see what I'd done wrong.

I learned this is called preflighting and is necessary due to CORS restrictions.

If the API key was added to the URL, preflighting wouldn't be necessary saving time. Are you aware of this impact of implementing authentication like that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions