CORS belongs to the API, not to you.
The other server decides which origins may read its answer, and the browser enforces it before your code sees a byte. A request sent from our worker has no origin to police, so the answer comes back whole, headers included.