Frontend & browser·The network from the browser
the request counted as cross-origin because the port was different, even though the hostname matched.
Origin
Also calledscheme host port
The triple of scheme, host and port that the browser uses as its unit of trust. Two URLs are same-origin only if all three match exactly, so `http` and `https`, or `example.com` and `api.example.com`, are different origins. Almost every browser security rule is expressed in terms of this, which makes it the definition worth being pedantic about.