Skip to main content

same_origin_writes

Function same_origin_writes 

Source
pub fn same_origin_writes(
    allowed: AllowedOrigins,
) -> impl Filter<Extract = (), Error = Rejection> + Clone
Expand description

Refuses state-changing requests (any method but GET, HEAD and OPTIONS) that a browser sent from another origin. See request_allowed.