Frank 5 mesi fa
parent
commit
474e311f6f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      packages/console/app/src/routes/zen/util/handler.ts

+ 1 - 0
packages/console/app/src/routes/zen/util/handler.ts

@@ -165,6 +165,7 @@ export async function handler(
                   if (typeof v === "string") {
                     if (v === "$ip") return [[k, ip]]
                     if (v === "$workspace") return authInfo?.workspaceID ? [[k, authInfo?.workspaceID]] : []
+                    if (v === "$session") return sessionId ? [[k, sessionId]] : []
                     if (v.startsWith("$header.")) {
                       const headerValue = input.request.headers.get(v.slice(8))
                       return headerValue ? [[k, headerValue]] : []