Function mz_environmentd::http::console::handle_internal_console
source ยท pub(crate) async fn handle_internal_console(
console_config: Extension<Arc<ConsoleProxyConfig>>,
req: Request<Body>,
) -> Result<Response, StatusCode>
Expand description
The User Impersonation feature uses a Teleport proxy in front of the Internal HTTP Server, however Teleport has issues with CORS that prevent making requests to that Teleport-proxied app from our production console URLs. To avoid CORS and serve the Console from the same host as the Teleport app, this route proxies the upstream Console to handle requests for HTML, JS, and CSS static files.