CORS & Preflight Playground

Rara’s page on desa.id asks gudang.kota.id: when the browser sends a letter asking leave (the OPTIONS preflight), which Allow-* headers the server must…

Why it matters

A CORS error looks like a client bug, yet the fix is on the server. Knowing what triggers a preflight and which Allow-* headers are needed means no more guessing: you fix the right thing at once.

The key idea

CORS is a browser rule, not a server one

Common mistakes

Try it in this playground