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

Prevents click jacking #476

Merged
merged 1 commit into from Mar 23, 2021
Merged

Prevents click jacking #476

merged 1 commit into from Mar 23, 2021

Conversation

LucaGallinari
Copy link
Contributor

Actually, there is no protection against click-jacking. Given the nature of the platform (credentials, credit cards informations ecc) i think that this should be the default behavior.
What do you think?

Doc reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

@LucaGallinari LucaGallinari requested a review from a team as a code owner December 23, 2020 11:29
@FDiskas
Copy link

FDiskas commented Jan 19, 2021

I love this. But this is not good for everyone. There is for example dedicated product review page and this can be embedded for some advertisements or landing pages. This will prevent that.

@LucaGallinari
Copy link
Contributor Author

I know @FDiskas , but i think Sylius should (i don't know if they always already do that) follow the security by default approach.

Copy link
Member

@lchrusciel lchrusciel left a comment

Choose a reason for hiding this comment

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

Hey Luca,

your opinion + OWASP recommendation are more than enough for me to be for merging of this PR (ref. https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html)

@lchrusciel lchrusciel added the Bug label Mar 23, 2021
@pamil pamil merged commit 8db9a71 into Sylius:1.8 Mar 23, 2021
@pamil
Copy link
Contributor

pamil commented Mar 23, 2021

Thanks, Luca! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants