MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / preflight_response

Function preflight_response

packages/server/src/auth.rs:97–101  ·  view source on GitHub ↗
(config: &Config, headers: &HeaderMap)

Source from the content-addressed store, hash-verified

95}
96
97pub fn preflight_response(config: &Config, headers: &HeaderMap) -> Response {
98 let mut response = StatusCode::NO_CONTENT.into_response();
99 append_cors_headers(config, headers, response.headers_mut());
100 response
101}
102
103pub fn unauthorized_response(config: &Config, headers: &HeaderMap) -> Response {
104 let mut response = (

Calls 2

append_cors_headersFunction · 0.85
into_responseMethod · 0.80