Loading…
A short voice session: one question, one follow-up, then instant feedback — up to 5 minutes.
CORS controls whether browser JavaScript may read certain cross-origin responses. It does not authenticate callers or stop every request from reaching the server.
A browser compares origins using scheme, host, and port and applies the server's CORS response headers. Some requests trigger a preflight; other cross-origin requests can be sent without one even if their response cannot be read by the script. Non-browser clients are not constrained by the browser's CORS enforcement. The API still needs authentication, authorization, and applicable CSRF protections.