CORS Explained: Why Browsers Block API Requests and How to Fix It