Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix(integrations): do not follow redirects from the Mount API
Raulbda2be757ba7
diff --git a/packages/ee/src/mount/lib/client.ts b/packages/ee/src/mount/lib/client.tsindex 5491b4e147..e4dad88400 100644--- a/packages/ee/src/mount/lib/client.ts+++ b/packages/ee/src/mount/lib/client.ts@@ -85,13 +85,11 @@ export class MountClient {// Concurrent callers share one token exchange; a hung endpoint must// reject eventually or all of them wait on it.timeout: MOUNT_REQUEST_TIMEOUT_MS,- // Every request carries the client secret or a bearer token, so a- // redirect may never downgrade to plain HTTP.- beforeRedirect: (options) => {- if (options.protocol !== "https:") {- throw new Error("Mount redirected to a non-HTTPS URL; refusing");- }- }+ // Every request carries the client secret or a bearer token, and a+ // 307/308 would resend them to wherever it points, another host or+ // plain HTTP. Mount's API has no reason to redirect, so none are+ // followed: a 3xx fails like any other error.+ maxRedirects: 0});}