Skip to content

Commit

Permalink
🌱 Disable "X-Powered-By: Express" header (#1537)
Browse files Browse the repository at this point in the history
Fixes https://issues.redhat.com/browse/MTA-1649

<!--
## PR Title Prefix

Every **PR Title** should be prefixed with :text: to indicate its type.

- Breaking change: ⚠️ (`⚠️`)
- Non-breaking feature: ✨ (`✨`)
- Patch fix: πŸ› (`πŸ›`)
- Docs: πŸ“– (`πŸ“–`)
- Infra/Tests/Other: 🌱 (`🌱`)
- No release note: πŸ‘» (`πŸ‘»`)

For example, a pull request containing breaking changes might look like
`⚠️ My pull request contains breaking changes`.

Since GitHub supports emoji aliases (ie. `πŸ‘»`), there is no need to
include
the emoji directly in the PR title -- **please use the alias**. It used
to be
the case that projects using emojis for PR typing had to include the
emoji
directly because GitHub didn't render the alias. Given that `⚠️`
is
easy enough to read as text, easy to parse in release tooling, and
rendered in
GitHub well, we prefer to standardize on the alias.

For more information, please see the Konveyor
[Versioning
Doc](https://github.com/konveyor/release-tools/blob/main/VERSIONING.md).
-->

Signed-off-by: Sam Lucidi <[email protected]>
  • Loading branch information
mansam authored Nov 13, 2023
1 parent 9d4c60c commit fcd2948
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const brandType = KONVEYOR_ENV.PROFILE;
const port = parseInt(KONVEYOR_ENV.PORT, 10) || 8080;

const app = express();
app.set("x-powered-by", false);
app.use(cookieParser());

// Setup proxy handling
Expand Down

0 comments on commit fcd2948

Please sign in to comment.