Skip to content

allow-same-origin problem in latest version(1.112.6) #20081

@joweste

Description

@joweste

Bug Description

After I just update to [email protected] version my html reponse from webhook stops to work.

I use localstorage in my html code.

When the html load in browser, I get:
"Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag."

Trying solve the problem I tried to set Content-Security-Policy to allow-same-origin in "Response Headers" of "Responde to Webhook" node, but no look. The problem continues.

To Reproduce

As mentioned on previous step

Expected behavior

localstorage should be work

Debug Info

Image

Operating System

Ubuntu 24.02

n8n Version

1.112.6

Node.js Version

22.1t6.0

Database

PostgreSQL

Execution mode

main (default)

Hosting

self hosted

Metadata

Metadata

Assignees

No one assigned

    Labels

    in linearIssue or PR has been created in Linear for internal review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions