-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Reversed X-XSS #13936
Reversed X-XSS #13936
Conversation
Hi there @AaronSadlerUK, thank you for this contribution! 👍 While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution. If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Bristol Hackathon testing! I've tested a vanilla install without the I've updated the install to produce the Clicking the "Mozilla" link shold take me to the Mozilla info page with more info on the header, however it takes me to the Umbraco docs for the health check ❌
Just need to update that URL and I'm happy it's passing 👍 |
Corrected in commit 5d07968 Thanks! |
Re-testing:
Testing passed ✅✅✅ thanks @AaronSadlerUK! |
Teamwork, thanks very much both, this is now merged for 11.3! 👍 |
Hey @AaronSadlerUK! In all my excitement and GitHub not showing the builld failing I merged this with not a glance at the code, but unfortunately we have a few breaking changes there so we had to roll this one back unfortunately. It would be really great if you'd like to try this one again though! The changes that were breaking:
I have't looked deeply into this PR at all but if you could address the above issues then we could give it another go! Thanks again for this attempt and sorry that I was a bit too quick on the trigger on merging this one. |
I don't think the I started working on a PR to obsolete it. For a proper separation of concerns I think we need an "IHttpHeader" service (or helper) - it really doesn't make sense to encapsulate the general HTTP Header checks inside a base healthcheck. Also, judging by the MDN docs, we don't necessarily want to ensure it's not there - we need to check its actual value. |
Prerequisites
Fixes #13341
Description
This reverses the health check to warn if it does exist with a link to the Mozilla website which explains why it should not exist
I have also changed the readmore button to be nullable (it's not always required) and added a bool to reverse the check in the base class