What CORS Protects
A frontend at https://app.example.com calls https://api.example.com and the browser blocks the response with a CORS error. Who enforces this, and where is it fixed?
https://app.example.com
https://api.example.com
Choose one answer
The firewall blocks it; open port 443 between the two hosts in both directions.
The DNS resolver blocks cross-domain requests; add a CNAME.
The browser; the API must allow that origin.
The API server rejects the request; fix it in the frontend code.