From 147fe68b7d7cf11d715885f5c4a998fb1defb762 Mon Sep 17 00:00:00 2001 From: pearl-truss Date: Thu, 8 Feb 2024 15:32:53 -0500 Subject: [PATCH] update so that ip address check uses includes --- services/app-api/src/handlers/apollo_gql.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/app-api/src/handlers/apollo_gql.ts b/services/app-api/src/handlers/apollo_gql.ts index 75fc55b8b6..6b64e9bb58 100644 --- a/services/app-api/src/handlers/apollo_gql.ts +++ b/services/app-api/src/handlers/apollo_gql.ts @@ -159,7 +159,8 @@ function ipRestrictionMiddleware( if (fromThirdPartyAuthorizer) { const isValidIpAddress = - allowedIps.includes(ipAddress) || allowedIps === 'ALLOW_ALL' + allowedIps.includes(ipAddress) || + allowedIps.includes('ALLOW_ALL') if (!isValidIpAddress) { return Promise.resolve({