Skip to content

Commit

Permalink
security(server): disable x-powered-by headers (#181)
Browse files Browse the repository at this point in the history
* security(server): disable x-powered-by headers
  • Loading branch information
cpvalente authored Jul 23, 2022
1 parent a757058 commit 18f3f36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ console.log(`Starting ontime version ${process.env.npm_package_version}`);

// Create express APP
const app = express();
app.disable('x-powered-by');

// setup cors for all routes
app.use(cors());
Expand Down
2 changes: 1 addition & 1 deletion server/src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ontime-server",
"type": "module",
"version": "1.2.0",
"version": "1.2.1",
"dependencies": {
"body-parser": "^1.20.0",
"dotenv": "^16.0.1",
Expand Down

0 comments on commit 18f3f36

Please sign in to comment.