Skip to main content

apply_cors

Function apply_cors 

Source
pub fn apply_cors(
    response: &mut HttpObjectResponse,
    origin: Option<&str>,
    opts: &HttpMountOptions,
)
Expand description

Apply SPEC-HTTP-OBJECTS §8 to every response, including adapter failures.