Add back the disabling of x-powered-by and content security policy

This commit is contained in:
MotorTruck1221 2024-08-02 01:10:37 -06:00
parent 817b0ca430
commit 41c344b9a4
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4

View file

@ -76,6 +76,10 @@ const serverFactory = (handler) => {
//set logger to true for logs //set logger to true for logs
const app = Fastify({ logger: false, serverFactory: serverFactory }); const app = Fastify({ logger: false, serverFactory: serverFactory });
app.register(fastifyHelmet, {
contentSecurityPolicy: false,
xPoweredBy: false
})
app.register(fastifyStatic, { app.register(fastifyStatic, {
root: fileURLToPath(new URL('../views', import.meta.url)), root: fileURLToPath(new URL('../views', import.meta.url)),
}); });