diff --git a/api/src/app.ts b/api/src/app.ts index 933f32c..a41895c 100644 --- a/api/src/app.ts +++ b/api/src/app.ts @@ -35,7 +35,9 @@ export const cookieOptions = { maxAge: 24 * 60 * 60 * 1000 // 24 hours } -const cspConfigJson: any = getEnvCSPDirectives(HELMET_CSP_CONFIG_PATH) +const cspConfigJson: { [key: string]: string[] | null } = getEnvCSPDirectives( + HELMET_CSP_CONFIG_PATH +) const coepFlag = HELMET_COEP === 'true' || HELMET_COEP === undefined ? true : false if (PROTOCOL === 'http') cspConfigJson['upgrade-insecure-requests'] = null