From f92f65a579fea58741f8da164f74bb140b974d11 Mon Sep 17 00:00:00 2001 From: Type-Style Date: Mon, 9 Sep 2024 12:22:12 +0200 Subject: [PATCH] [FIX] #123, referrer policy to allow authorization for stadia --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 139ce80..a37f731 100644 --- a/src/app.ts +++ b/src/app.ts @@ -40,7 +40,7 @@ app.use((req, res, next) => { // clean up IPv6 Addresses }) if (process.env.NODE_ENV != "development") { - app.use(helmet({ contentSecurityPolicy: { directives: { "default-src": "'self'", "img-src": "*" } } })); + app.use(helmet({ contentSecurityPolicy: { directives: { "default-src": "'self'", "img-src": "*" } }, referrerPolicy: { policy: "strict-origin-when-cross-origin" } })); } app.use(cache); app.use(compression())