Skip to main content
← rust.krizaka.comkrizaka.com

same_origin

Function same_origin 

Source
pub fn same_origin(allowed: &str, target: &Url) -> bool
Expand description

True when target is on the same origin as allowed. A look-alike host (app.example.com.evil.example) is not.