Web Security · Junior · Question 37 of 75

Are https://app.example.com and https://api.example.com the same origin?

Explanation

Subdomains are separate origins. They are same-site, which matters for cookies and SameSite, but not for the same-origin policy.

Further reading

Problem with a question

Web Security · Junior · question 37

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