This feature was already implemented but was replaced by intruducing a <iframe>wrapper in the response.
My use case:
Used in severall workflows that require a simple plain text response for a webhook validation. Needed for external apps. Haven’t found a workaround so far, also open to hear one.
I think it would be beneficial to add this because:
Currently im locked at using 1.102.0 since all the work previously done is unable to function on new version.
If your workflow is using the Webhook node and uses JavaScript in responseData to make fetch calls or access localStorage, you may need to refactor it due to the new iframe sandboxing.
Cool. Refactor it. And how?
In my Reply to Webhook node I have set the response type to “Text” and the response body would be an expression, something like this:
{{ `✅ ${$json.count} was saved successfully.` }}
But even setting the response body to “Fixed” and just entering plain text doesn’t help. All that’s returned using Respond with: Text is HTML code containing only an empty(!) iframe. So the “suggested actions” above are wrong; it doesn’t apply only for javascript with fetch calls or localStorage access, but for basically anything set as the response body while using Text as the response type.
For now had to revert back to 1.102.2 as well, but the introduction of such a change with zero thought for existing workflows or even a guide on how to refactor/mitigate the issue is infuriating.
This also broke some workflows for me. Seriously @n8n thats not on!
Why not give us the option instead of “making it secure”
I need the old behaviour back to generate payment pages that need to be created dynamically with hidden form fields