What this proves — An embedded remote calls its own API route from the browser same-origin to the shell — no CORS.
withApiPrefix() prefixes the path with /_remote/<prefix>; the shell strips it and forwards to this remote.