Discover Packages
github.com/VersusControl/versus-incident
pkg
weborigin
package
Version:
v1.4.25
Opens a new window with list of versions in this module.
Published: Sep 7, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package weborigin validates and compares browser-visible HTTP origins.
Normalize validates and canonicalizes a browser-visible HTTP(S) origin. A
root path is accepted and removed; all other URL components are rejected.
Same reports whether candidate has the same normalized scheme, host, and
effective port as expected. Referers may include a path and query; Origin
values may contain only an empty or root path.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.