Skip to main content

remove_sensitive_response_headers

Function remove_sensitive_response_headers 

pub fn remove_sensitive_response_headers(headers: &mut HeaderMap)
Expand description

Remove sensitive headers from an outbound response.

This function removes headers that may expose session identifiers or user specific state.

This is typically used when responses should not propagate authentication state or tracking information.