CORS Interview and Review Prompts
Use these prompts to test whether a candidate or reviewer understands browser trust boundaries, not just header names.
- What three values define an origin?
- Why does
https://app.example.comdiffer fromhttp://app.example.com? - Why does
Access-Control-Allow-Origin: *fail with credentialed requests? - Which request shapes trigger a preflight and why?
- Why is CORS not a defense against CSRF by itself?
- Why is
OPTIONShandling often implemented at the edge or reverse-proxy layer? - What is the difference between โthe browser may send the requestโ and โthe browser may expose the response to JavaScriptโ?