Skip to main content

check_csrf

Function check_csrf 

Source
pub fn check_csrf(headers: &HeaderMap, expected: &str) -> Result<(), AdminError>
Expand description

Compares the request’s X-CSRF-Token against the session’s, in constant time.