MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / getCORSConfig

Method getCORSConfig

rest/handler.go:1846–1851  ·  view source on GitHub ↗

getCORSConfig will return the CORS config for the handler's database if set, otherwise it will return the server CORS config

()

Source from the content-addressed store, hash-verified

1844
1845// getCORSConfig will return the CORS config for the handler's database if set, otherwise it will return the server CORS config
1846func (h *handler) getCORSConfig() *auth.CORSConfig {
1847 if h.db != nil {
1848 return h.db.CORS
1849 }
1850 return h.server.Config.API.CORS
1851}

Callers 2

checkLoginCORSMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected