Cross-Site Script Inclusion

Only the followings URLs are considered to have the same origin as https://www.example.com:

URL Same Origin?
https://www.example.com/profile Yes - the protocol, domain and port match, even though the path is different
http://www.example.com No - the protocol differs
https://www.anotherwebsite.com No - the domain differs
https://www.example.com:8080 No - the port differs