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

Allow setting no XSS header #30

Merged
merged 2 commits into from
Nov 3, 2024
Merged

Conversation

grahamburgsma
Copy link
Contributor

Currently the XSS header is hardcoded and cannot be removed.

From a recent pentest against our Vapor server, it was recommended to remove the XSS header for the following reason:

This leaves any application using the APIs vulnerable to cross site scripting in browsers which do not support CSP. It is recommended to remove X-XSS protection completely and rely on a secure CSP.

OWASP also recommends this:

Do not set this header or explicitly turn it off.

So this change allows the XSS configuration to be removed to align with these recommendations.

@0xTim 0xTim merged commit 0a25315 into brokenhandsio:main Nov 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants