Skip to main content

same_origin

Function same_origin 

Source
pub fn same_origin(url1: &str, url2: &str) -> bool
Expand description

Check if two URLs are the same origin.

§Arguments

  • url1 - First URL
  • url2 - Second URL

§Returns

true if both URLs have the same origin