diff --git a/apps/cloud-console/src/bot-check.ts b/apps/cloud-console/src/bot-check.ts index cdf1385354..ee1d03e88b 100644 --- a/apps/cloud-console/src/bot-check.ts +++ b/apps/cloud-console/src/bot-check.ts @@ -5,12 +5,15 @@ import { initBotId } from "botid/client/core"; * sign-in widget's two flow writes, which the add-on routes through the * cloud's functions (`signInApiBase`), where `checkBotId()` reads the mark. * Started when the add-on loads, before the widget sends anything. + * + * The paths are the ones the widget sends: its base, then the API's prefix. + * A call they miss goes unmarked, and the check refuses it as a bot. */ export function startBotCheck(): void { initBotId({ protect: [ - { path: "/cloud/zitadel/flow", method: "POST" }, - { path: "/cloud/zitadel/flow/*/submit", method: "POST" }, + { path: "/cloud/zitadel/api/v1/flow", method: "POST" }, + { path: "/cloud/zitadel/api/v1/flow/*/submit", method: "POST" }, ], }); }