CORS (Cross-Origin Resource Sharing) controls which websites can make requests to your server. When you make a request to a different origin (domain, port, or protocol), the browser checks if the server allows it.
"Simple" requests don't trigger a preflight check. They're sent directly, and the browser checks the response headers to decide whether JavaScript can access the result.