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

use valid value for X-Frame-Options #46

Merged
merged 2 commits into from May 21, 2020

Conversation

hannob
Copy link
Contributor

@hannob hannob commented May 21, 2020

SAMESITE is not a valid value for the X-Frame-Options header.

This is also causing an error in the Firefox developer console:

Invalid X-Frame-Options: “SAMESITE” header from “https://jawanndenn.de/static/3rdparty/github-buttons-4.0.1/d…-btn.html?user=hartwork&repo=jawanndenn&type=star&count=true” loaded into “https://jawanndenn.de/”.

The intention was probably to set it to sameorigin, see:
https://developer.mozilla.org/de/docs/Web/HTTP/Headers/X-Frame-Options

Copy link
Owner

@hartwork hartwork left a comment

Choose a reason for hiding this comment

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

Okay… I forgot where I read to use SAMESITE or if I just didn't pay close enough attention to the exact value. Interestingly, SAMESITE made the iframe work for both my Chromium and my Firefox. Is that expected?

The CI fails because I added a test case that needs adjustment to the new header value now. Could you get the test back in sync?

@hartwork hartwork added the bug label May 21, 2020
@hartwork hartwork self-assigned this May 21, 2020
@hannob
Copy link
Contributor Author

hannob commented May 21, 2020

I guess it "worked" because an invalid value is the same as not setting the header at all.

@hannob hannob requested a review from hartwork May 21, 2020 16:54
Copy link
Owner

@hartwork hartwork left a comment

Choose a reason for hiding this comment

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

Thanks for the update, looks great now. 🙏

@hartwork hartwork merged commit 19cf61c into hartwork:master May 21, 2020
@hartwork
Copy link
Owner

PS: Fix deployed to https://jawanndenn.de/ by now.

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

2 participants