From a73d10cdaa0d82b359fa3c3da7872944346ee0f4 Mon Sep 17 00:00:00 2001 From: Gareth Lomax <6199423+gclomax@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:33:01 +0000 Subject: [PATCH] adding oaknationalacademy-res.cloudinary.com to the img-src csp. to prevent blocking of images in frontend --- apps/nextjs/src/middlewares/csp.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/nextjs/src/middlewares/csp.ts b/apps/nextjs/src/middlewares/csp.ts index a00611977..5d05538a6 100644 --- a/apps/nextjs/src/middlewares/csp.ts +++ b/apps/nextjs/src/middlewares/csp.ts @@ -129,6 +129,7 @@ export const buildCspHeaders = (nonce: string, config: CspConfig) => { "data:", "https://img.clerk.com", "https://res.cloudinary.com", + "https://oaknationalacademy-res.cloudinary.com", "https://*.hubspot.com", "https://*.hsforms.com", ],