Why an API works in curl but fails at the browser preflight
This story is from 2026-10-02. It is preserved in the archive; the latest stories are on the live feed.
I have seen a request work in curl and fail before the browser sends the same POST. The difference can be an OPTIONS preflight. The browser asks whether the origin, method, and request headers are allowed. If the server responds with 401 or omits one of the required headers, the application request…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-02 12:07 · DEV Community — AI
Why an API works in curl but fails at the browser preflight