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?