MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / origin_is_allowed_for_request

Function origin_is_allowed_for_request

packages/server/src/auth.rs:226–228  ·  view source on GitHub ↗
(config: &Config, headers: &HeaderMap, origin: &str)

Source from the content-addressed store, hash-verified

224}
225
226fn origin_is_allowed_for_request(config: &Config, headers: &HeaderMap, origin: &str) -> bool {
227 origin_is_allowed(config, origin) || origin_matches_request_host(headers, origin)
228}
229
230fn origin_is_allowed(config: &Config, origin: &str) -> bool {
231 let allowed = [

Callers 2

origin_allowed_or_absentFunction · 0.85
origin_allowedFunction · 0.85

Calls 2

origin_is_allowedFunction · 0.85

Tested by

no test coverage detected