Skip to content

Commit

Permalink
fix: HSTS preload header
Browse files Browse the repository at this point in the history
  • Loading branch information
sznowicki committed Jul 2, 2024
1 parent e62908e commit 1b8a525
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ import { postFeedbackEnhanceController } from './controllers/api/feedback/enhanc

const main = async () => {
const app = express();
app.use(helmet());
app.use(helmet({
strictTransportSecurity: {
maxAge: 63072000,
preload: true,
},
}));
app.disable('x-powered-by');
app.use((req, res, next) => {
console.log(`Request: ${req.get('cf-connecting-ip')}, ${req.originalUrl}`);
Expand Down

0 comments on commit 1b8a525

Please sign in to comment.