xtreamgate.co is an XtreamGate support site. Official service at xtreamgate.com
Skip to content
All articles

Compare a browser origin with a complete page address

An ordinary HTTPS browser origin combines scheme, host and port. A full address can also identify a path, query and fragment. Say which comparison you are making before deciding whether two addresses are the same for your purpose.

Use one origin and two routes

https://album.example/index and https://album.example/prints share the HTTPS scheme, the album.example host and the default HTTPS port. They have the same origin and different paths. WHATWG browser origin

Change the origin without changing the path

The third printed card is https://album.example:8443/prints. The host and path match the second card. Its explicit port is different from the default HTTPS port, so the two cards don't describe the same origin.

Match the comparison to the job at hand

If the question is whether you reached the usual /prints page on the usual site origin, compare both pieces. A matching path on a changed origin is a reason to return through a known bookmark before continuing the task.