Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add csp header for iframe embedding #1442

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Conversation

jczhong84
Copy link
Collaborator

This change is to

Prevents external sites from embedding your site in an iframe. This prevents a class of attacks where clicks in the outer frame can be translated invisibly to clicks on your page’s elements. This is also known as “clickjacking”.

Flask's doc suggests to use X-Frame-Options, but it has been obsoleted by csp frame-ancestors

@czgu czgu merged commit 80a9eee into pinterest:master Apr 17, 2024
5 checks passed
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.

2 participants