HTTP: What is a URI origin?
30 October 2022 (Updated 30 October 2022)
On this page
In a nutshell
An origin is the combination of URL scheme, host, and port. Here are some examples of origins:
Origin | Scheme | Host | Port |
---|---|---|---|
https://example.com | https | example.com | 443 (default port of https) |
http://example.com | http | example.com | 80 (default port of http) |
http://example.com:8080 | http | example.com | 8080 |
The path of the host doesn’t matter. So, the following origins would be considered the same:
- https://example.com
- https://example.com/foo
- https://example.com/foo/bar
Sources
Tagged:
HTTP
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment