Web Security · Junior · Question 43 of 75

Why can't a server respond with Access-Control-Allow-Origin: * together with Access-Control-Allow-Credentials: true?

Explanation

With credentials the server has to name the exact allowed origin. It should check the Origin against an allowlist, not just echo it back.

Further reading

Problem with a question

Web Security · Junior · question 43

Test yourself

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

Take this quiz