Skip to content

Fix clickjacking#6185

Merged
yau-wd merged 3 commits intomainfrom
fix/clickjacking
Apr 14, 2026
Merged

Fix clickjacking#6185
yau-wd merged 3 commits intomainfrom
fix/clickjacking

Conversation

@yau-wd
Copy link
Copy Markdown
Contributor

@yau-wd yau-wd commented Apr 10, 2026

FLOWISE-147
Resolves a clickjacking vulnerability where the application could be embedded in iframes on any domain, allowing potential UI redressing attacks on authenticated users.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the iframe embedding security headers by implementing Content-Security-Policy (CSP) and X-Frame-Options, while also changing the default allowed origins from '*' to ''self''. Feedback includes correcting the CSP frame-ancestors directive to use space-separated values instead of comma-separated ones to ensure browser compatibility. Additionally, it is recommended to throw an error if the IFRAME_ORIGINS environment variable is missing rather than falling back to a default, ensuring explicit security configuration.

@HenryHengZJ
Copy link
Copy Markdown
Contributor

need to verify does it bring any breaking changes for exsitng users using chatembed

@yau-wd
Copy link
Copy Markdown
Contributor Author

yau-wd commented Apr 13, 2026

@HenryHengZJ, I’ve added the requested test screenshots in Jira.

@yau-wd yau-wd merged commit 311a3f4 into main Apr 14, 2026
8 of 9 checks passed
@yau-wd yau-wd deleted the fix/clickjacking branch April 14, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants