feat: Env to disable webhook response iframe sandboxing (#17851)

This commit is contained in:
Michael Kret
2025-07-31 14:37:25 +03:00
committed by GitHub
parent b89c254394
commit 1ed8239625
6 changed files with 79 additions and 8 deletions

View File

@@ -151,7 +151,7 @@ class WebhookRequestHandler {
} else {
const needsSandbox = contentType && isHtmlRenderedContentType(contentType);
if (needsSandbox) {
res.send(sandboxHtmlResponse(JSON.stringify(body)));
res.send(sandboxHtmlResponse(body));
} else {
res.json(body);
}