-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Feature Request]: Update X-Frame-options header #21368
Comments
Hey @HardikGoyal2003 could you pls elaborate what actually do you need ? May be I could help to solve. |
Hey @HardikGoyal2003! |
@SharkyBytes Per the guidance at https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#choosing-a-good-first-issue, please provide an explanation of what your PR will do (with names of files you're changing, what you plan to change in each file, etc.). If it looks good, we can assign you to this issue. Please also follow the other instructions on that wiki page if you have not yet done so. Thanks! Also, for this issue, please show a video that demonstrates that the embedding functionality still works correctly after your changes. Thanks. |
@HardikGoyal2003 I have made changes in the following files
After making these changes i ran the test file and it ran successfully |
Hey @Hemant2A2 Can you also show what headers appear on the Learner dashboard, and exploration player page in the local devserver? |
checking_headers.mp4 |
@HardikGoyal2003 PTAL |
Hey, @Hemant2A2 I think your approach is incorrect, can you refer to this: https://stackoverflow.com/questions/43039706/replacing-x-frame-options-with-csp/43039924 And please make sure to show a video demo of headers in iframe as well as on the local dev server. |
@HardikGoyal2003 which iframe headers do I need to show? Could you please specify the url of that page. |
|
@HardikGoyal2003 Thanks!
20241227190133379.mp4 |
@Hemant2A2 Apologies, previously iframe links were a bit wrong for the learner dashboard and admin page, Now I have updated the above HTML code, can you try again now and share a demo video? And as it looks like a good start, I am assigning it to you. Please feel free to open a PR. |
20241228011717153.mp4 |
Also, is |
@Hemant2A2 Yes both do the same thing, but the implementation is a bit different. The demo also looks good, please feel free to open a PR soon. Thanks! |
Is your feature request related to a problem? Please describe.
The X-Frame-Options header is now obsolete and needs updating.
Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
Code reference:
oppia/core/controllers/base.py
Line 692 in 37f68e3
Describe the solution (or solutions) you'd like
Update the header to reflect the latest methodology.
Describe alternatives you've considered and rejected
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: