Browser & Web Performance · Junior · Question 51 of 75
What makes two URLs the same origin?
- 1Same domain name only
- 2Same IP address
- ✓Correct answer: Same scheme, host and port
Explanation
https://a.com and http://a.com differ in scheme; https://a.com and https://api.a.com differ in host.
Test yourself
Take the Browser & Web Performance · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.
Take this quiz