mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-17 13:30:01 -04:00
Add back the disabling of x-powered-by and content security policy
This commit is contained in:
parent
817b0ca430
commit
41c344b9a4
1 changed files with 4 additions and 0 deletions
|
@ -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)),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue