72/81
Sign inSign up free

588. Browser Blocks the API Call

medium 5 XP ~1 minQuiz

A page at https://app.example.com calls https://api.example.com/data with fetch(). The browser console shows a CORS error, but the same request with curl works. What fixes it?

Choose one answer