Skip to content

fix: hide X-Powered-By header via Firebase hosting config#398

Merged
Aditya948351 merged 1 commit into
devpathindcommunity-india:masterfrom
nishupr:fix/hide-x-powered-by
May 31, 2026
Merged

fix: hide X-Powered-By header via Firebase hosting config#398
Aditya948351 merged 1 commit into
devpathindcommunity-india:masterfrom
nishupr:fix/hide-x-powered-by

Conversation

@nishupr
Copy link
Copy Markdown
Contributor

@nishupr nishupr commented May 29, 2026

Fix #361

What does this PR do?

Hides the X-Powered-By header to prevent leaking technology
stack details to potential attackers.

Changes Made

  • Added headers configuration in firebase.json to remove
    the X-Powered-By header from all responses

Research

This project uses Next.js with output: 'export' deployed
on Firebase Hosting (static). Since there is no Express
backend, middleware-based solutions won't work here.
Configuring headers directly in firebase.json is the
correct approach for this setup.

Why?

Exposing the X-Powered-By header reveals the technology stack
to attackers, making it easier to target known vulnerabilities.

Copy link
Copy Markdown
Collaborator

@Aditya948351 Aditya948351 left a comment

Choose a reason for hiding this comment

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

Excellent security hygiene hiding the X-Powered-By header via firebase.json. Approved!

@Aditya948351 Aditya948351 merged commit 67061f9 into devpathindcommunity-india:master May 31, 2026
@Aditya948351
Copy link
Copy Markdown
Collaborator

Do star the repo! Successfully merging this and loved the changes you did.

@Aditya948351 Aditya948351 added gssoc26 This is a official GirlScript Summer of Code label. level:beginner Beginner level issues type:security gssoc:approved give 50+ base points labels May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved give 50+ base points gssoc26 This is a official GirlScript Summer of Code label. level:beginner Beginner level issues type:security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Security] Hide X-Powered-By header in Express backend

2 participants