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

Secure-Headers delete "X-Powered-By" should be an option. #3175

Closed
EdamAme-x opened this issue Jul 22, 2024 Discussed in #3174 · 1 comment · Fixed by #3177
Closed

Secure-Headers delete "X-Powered-By" should be an option. #3175

EdamAme-x opened this issue Jul 22, 2024 Discussed in #3174 · 1 comment · Fixed by #3177

Comments

@EdamAme-x
Copy link
Contributor

EdamAme-x commented Jul 22, 2024

Discussed in https://github.com/orgs/honojs/discussions/3174

Originally posted by EdamAme-x July 22, 2024
Maybe to avoid guessing the server configuration, but I think this should be an option.

https://github.com/honojs/hono/blob/main/src/middleware/secure-headers/secure-headers.ts#L192

@EdamAme-x EdamAme-x changed the title Why Secure-Headers delete "X-Powered-By"? Secure-Headers delete "X-Powered-By" should be an option. Jul 22, 2024
@EdamAme-x
Copy link
Contributor Author

EdamAme-x commented Jul 22, 2024

If anyone who sees this issue and is having trouble with the x-powered-by not including, it works by putting the middleware forward.
image

OR

secureHeaders({...}, { removePoweredBy: false })

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 a pull request may close this issue.

1 participant