Check whether two URLs share the same origin.
First URL.
Second URL.
True if both URLs have the same origin.
Check whether two URLs share the same origin.