CORS allows servers to grant cross-origin access using headers like Access-Control-Allow-Origin, ensuring secure and controlled web requests.