API Testing · Middle · Question 49 of 75

How do you test CORS configuration of an API?

Show the answer

Correct answer: Send different Origin headers and check the allow headers

Explanation

Allowed origins should get Access-Control-Allow-Origin; others shouldn't. * together with credentials is a misconfiguration.

Further reading

Problem with a question

API Testing · Middle · question 49

Test yourself

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

Take this quiz