1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-03 21:10:05 +00:00

chore: type fix

This commit is contained in:
2022-05-10 10:13:57 +00:00
parent b0fdaaaa79
commit 24d7f00c02

View File

@@ -35,7 +35,9 @@ export const cookieOptions = {
maxAge: 24 * 60 * 60 * 1000 // 24 hours 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 = const coepFlag =
HELMET_COEP === 'true' || HELMET_COEP === undefined ? true : false HELMET_COEP === 'true' || HELMET_COEP === undefined ? true : false
if (PROTOCOL === 'http') cspConfigJson['upgrade-insecure-requests'] = null if (PROTOCOL === 'http') cspConfigJson['upgrade-insecure-requests'] = null