Skip to main content

same_origin

Function same_origin 

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

Refuses every request a browser sent from another origin, whatever its method. Used for the WebSocket handshake, which is a GET.