API Testing · Junior · Question 47 of 75

Why does a request work in Postman but fail with a CORS error in the browser?

Show the answer

Correct answer: CORS is enforced by browsers, not by Postman or curl

Explanation

Browsers block cross-origin responses unless the server sends the right CORS headers. It's a server configuration issue, not a client bug.

Further reading

Problem with a question

API Testing · Junior · question 47

Test yourself

Take the API Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz