From 0b14724ea08f9c550e419af6034d03bbc7091bf8 Mon Sep 17 00:00:00 2001 From: Thomas Cristina de Carvalho Date: Sun, 11 Feb 2024 14:29:24 -0500 Subject: [PATCH] Fix csp syntax --- app/entry.server.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/entry.server.tsx b/app/entry.server.tsx index c04690d..61197ff 100644 --- a/app/entry.server.tsx +++ b/app/entry.server.tsx @@ -51,10 +51,10 @@ export default async function handleRequest( export const createCspHeaders = () => { // Default CSP headers, will be used as a base for all environments const defaultsCSPHeaders = { - connectSrc: ['*', 'self'], + connectSrc: ['*', "'self'"], fontSrc: ['*.sanity.io', "'self'", 'localhost:*'], frameAncestors: ['localhost:*', '*.sanity.studio'], - frameSrc: ['self'], + frameSrc: ["'self'"], imgSrc: ['*.sanity.io', 'https://cdn.shopify.com', "'self'", 'localhost:*'], scriptSrc: ["'self'", 'localhost:*', 'https://cdn.shopify.com'], };