pub fn create_preflight_response(
config: &CorsConfig,
request_origin: Option<&str>,
) -> Result<Response<Body>>Expand description
Create a CORS preflight response
Handles OPTIONS requests that browsers send before making actual CORS requests.