Skip to content

Commit 5cc8503

Browse files
Resul AvanResul Avan
Resul Avan
authored and
Resul Avan
committed
disable finger print
1 parent ee817f3 commit 5cc8503

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

functions/src/apiApp.ts

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ router.post(ApiConfig.auth.claims, extractHeaderHandler, tokenHandler, claimsHan
2020
router.post(ApiConfig.notification.notify.context, extractHeaderHandler, tokenHandler, notifyHandler)
2121

2222
const app = express()
23+
app.disable('x-powered-by')
2324
app.use(cookieParser())
2425
app.use(json())
2526
app.use(cors({ origin: true }))

functions/src/nuxtOnFunction.ts

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const handleRequest = async (req: Request, res: Response) => {
3939

4040
// Init express.
4141
const app = express();
42+
app.disable('x-powered-by')
4243
app.use(cookieParser())
4344
// Give nuxt middleware to express.
4445
app.get('*', handleRequest)

functions/src/sitemapApp.ts

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { RuntimeOptions, runWith } from "firebase-functions"
33
import { sitemapHandler } from 'handlers-module'
44

55
const app = express()
6+
app.disable('x-powered-by')
7+
68
const router = Router()
79

810
router.get('/sitemap.xml', sitemapHandler)

src/server/api.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ router.post(ApiConfig.auth.claims, extractHeaderHandler, tokenHandler, claimsHan
2222
router.post(ApiConfig.notification.notify.context, extractHeaderHandler, tokenHandler, notifyHandler)
2323

2424
const app = express()
25+
app.disable('x-powered-by')
2526
app.use(json())
2627
app.use(cookieParser())
2728
app.use(cors({ origin: true }))

src/server/sitemap.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import { sitemapHandler } from 'handlers-module'
1313
// ]
1414

1515
const app = express()
16+
app.disable('x-powered-by')
17+
1618
const router = Router()
1719

1820
router.get('/sitemap.xml', sitemapHandler)

0 commit comments

Comments
 (0)