Optional: good to know Step 8 of 16 on the Frontend Developer roadmap
CORS in brief
If the browser blocks a request with a CORS error, the server has not allowed your site to call it. It is a server setting, so the fix is rarely in your frontend code.