pub fn same_origin(allowed: &str, target: &Url) -> bool
True when target is on the same origin as allowed. A look-alike host (app.example.com.evil.example) is not.
target
allowed
app.example.com.evil.example