Sets default X-Frame-Options for login and registration forms to environment setting - #25338
Conversation
|
Thanks for the pull request, @nizarmah! I've created OSPR-5053 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
gabor-boros
left a comment
There was a problem hiding this comment.
👍 🎉
- I tested this: Send a request to the Login page with a specific Referer: customhostname.com header
- I tested this: Verify that the response header contains X-Frame-Options: ALLOW
- I read through the code
- [ ] I checked for accessibility issues
- [ ] Includes documentation
- [ ] I made sure any change in configuration variables is reflected in the corresponding client'sconfiguration-securerepository.
|
@nizarmah Thank you for your contribution. Please let me know once it is ready for our review. |
|
@nizarmah When do you think this PR will be ready? |
|
@natabene sorry about this PR. It might be a while since it is ready. There are a couple of changes I'm trying to upstream at this moment, which include different fixes, such as the ones open at the moment to the Video Abstraction Layer repository (edx-val). This is PR is one of the changes that I'd like to upstream, but there's a high chance I'll be changing the approach that I used on this PR, which is why I converted it to a Draft PR. If it would be an issue, I can close it and reopen a new one. Let me know please 🙂 |
|
@nizarmah Thanks for the update, it is fine to keep it open, just wanted to make sure this was not abandoned. |
|
@natabene this is ready for review 👍 |
|
@nizarmah Thank you for letting me know. |
bradenmacdonald
left a comment
There was a problem hiding this comment.
Has potential security / clickjacking implications, but I have checked:
- This change just makes the
X_FRAME_OPTIONSsetting work more consistently as described, and does not affect the security of the default nor production configurations. - This really only affects IE 11 / old browsers, because a "Content Security Policy" with "frame-ancestors" is used for newer browsers and allows more fine-grained control.
- Tested this on local devstack to confirm
DENYis still the default header sent.
So: 👍
- I tested this: as described above and on the sandbox provided
- I read through the code
- I checked for accessibility issues: n/a
- Includes documentation: n/a, setting is already documented
|
@nizarmah Can you please rebase + squash this down to one commit with a clear commit message, in preparation for merge? |
46fb6df to
3d1f4e5
Compare
…AME_OPTIONS environment setting
3d1f4e5 to
6e0b304
Compare
|
@bradenmacdonald thanks for your review! 😄 I'll keep an eye on the builds, in case they fail (even though they should not) |
|
Your PR has finished running tests. There were no failures. |
|
@bradenmacdonald Ready to merge? |
|
@nizarmah 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
…hitelist Sets default X-Frame-Options for login and registration forms to environment setting (cherry picked from commit bb0492e)
…hitelist Sets default X-Frame-Options for login and registration forms to environment setting (cherry picked from commit bb0492e)
…hitelist Sets default X-Frame-Options for login and registration forms to environment setting (cherry picked from commit bb0492e)
Update the
X-Frame-Optionsdefault value for login and registration forms to the existingEDXAPP_X_FRAME_OPTIONSenvironment settings to match the default setting across the whole platform.JIRA tickets: SE-3437, OSPR-5053
Sandbox URL:
Testing instructions:
X-Frame-Options: ALLOWReviewers
Settings