Skip to content

Commit

Permalink
disable finger print
Browse files Browse the repository at this point in the history
  • Loading branch information
Resul Avan authored and Resul Avan committed Nov 2, 2020
1 parent ee817f3 commit 5cc8503
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions functions/src/apiApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ router.post(ApiConfig.auth.claims, extractHeaderHandler, tokenHandler, claimsHan
router.post(ApiConfig.notification.notify.context, extractHeaderHandler, tokenHandler, notifyHandler)

const app = express()
app.disable('x-powered-by')
app.use(cookieParser())
app.use(json())
app.use(cors({ origin: true }))
Expand Down
1 change: 1 addition & 0 deletions functions/src/nuxtOnFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const handleRequest = async (req: Request, res: Response) => {

// Init express.
const app = express();
app.disable('x-powered-by')
app.use(cookieParser())
// Give nuxt middleware to express.
app.get('*', handleRequest)
Expand Down
2 changes: 2 additions & 0 deletions functions/src/sitemapApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { RuntimeOptions, runWith } from "firebase-functions"
import { sitemapHandler } from 'handlers-module'

const app = express()
app.disable('x-powered-by')

const router = Router()

router.get('/sitemap.xml', sitemapHandler)
Expand Down
1 change: 1 addition & 0 deletions src/server/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ router.post(ApiConfig.auth.claims, extractHeaderHandler, tokenHandler, claimsHan
router.post(ApiConfig.notification.notify.context, extractHeaderHandler, tokenHandler, notifyHandler)

const app = express()
app.disable('x-powered-by')
app.use(json())
app.use(cookieParser())
app.use(cors({ origin: true }))
Expand Down
2 changes: 2 additions & 0 deletions src/server/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { sitemapHandler } from 'handlers-module'
// ]

const app = express()
app.disable('x-powered-by')

const router = Router()

router.get('/sitemap.xml', sitemapHandler)
Expand Down

0 comments on commit 5cc8503

Please sign in to comment.