Remove X-Powered-By
header
This commit is contained in:
parent
e3d5406d27
commit
ef9b100dd1
1 changed files with 0 additions and 3 deletions
|
@ -15,13 +15,10 @@ import handle404 from './middleware/404';
|
|||
|
||||
import { Options } from './types';
|
||||
|
||||
const PKG = require('../package.json');
|
||||
|
||||
export default function createServer(opts : Options) : express.Application {
|
||||
const app = express();
|
||||
|
||||
app.use(helmet());
|
||||
app.use(helmet.hidePoweredBy({setTo: `tstatic ${PKG.version}`}));
|
||||
app.use(helmet.ieNoOpen());
|
||||
app.use(helmet.noCache());
|
||||
app.use(referrerPolicy({ policy: 'same-origin' }));
|
||||
|
|
Reference in a new issue