pub(crate) fn build_cors_layer(config: &Config) -> CorsLayer
Build CORS layer based on configuration.
If CORS_ORIGINS env var contains “*”, allows any origin (use only in development). Otherwise, only allows specified origins.