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