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

Function origin_is_cors_allowed

packages/server/src/auth.rs:243–245  ·  view source on GitHub ↗
(config: &Config, origin: &str)

Source from the content-addressed store, hash-verified

241}
242
243fn origin_is_cors_allowed(config: &Config, origin: &str) -> bool {
244 origin == "null" || origin_is_allowed(config, origin)
245}
246
247fn origin_matches_request_host(headers: &HeaderMap, origin: &str) -> bool {
248 let Some(origin_authority) = origin_authority(origin) else {

Callers 1

append_cors_headersFunction · 0.85

Calls 1

origin_is_allowedFunction · 0.85

Tested by

no test coverage detected