-
Sigmund, Dominik authoredSigmund, Dominik authored
index.js 754 B
const express = require('express')
const security = require('../../index')
const app = express()
app.use(security({
CacheControl: 'public, max-age=9999999999',
Pragma: false,
Expires: 'Wed, 21 Oct 2090 07:28:00 GMT',
ContentSecurityPolicy: false,
XXSSProtection: false,
XDNSPrefetchControl: 'on',
ExpectCT: false,
XFrameOptions: false,
StrictTransportSecurity: false,
XDownloadOptions: false,
XContentTypeOptions: false,
XPermittedCrossDomainPolicies: false,
ReferrerPolicy: 'unsafe-url',
allowedMethods: ['HEAD', 'GET', 'OPTIONS'],
onlyDefinedRoutes: false
}))
app.get('/', function (req, res) {
res.send('Hello World!')
})
app.listen(3000, function () {
console.log('Unsave Example app listening on port 3000!')
})