Skip to main content

grant_site

Function grant_site 

Source
pub(crate) fn grant_site(origin: &str, page_origin: &str) -> String
Expand description

The site a use is asked about and granted for: the origin of the frame the field is in, and when that is another site’s frame (Stripe Elements, Braintree, Adyen, a bank’s hosted field), the page it is on too. A grant is for that pair, so a look-alike frame on the page, or the provider’s frame on another page, never inherits it.