Skip to content

Commit

Permalink
Merge pull request #76 from Shopify/test-cspt-csp
Browse files Browse the repository at this point in the history
Test csp
  • Loading branch information
wizardlyhel authored Sep 5, 2024
2 parents dacfe3c + 9c26e29 commit 0cd99c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ export default async function handleRequest(
checkoutDomain: context.env.PUBLIC_CHECKOUT_DOMAIN,
storeDomain: context.env.PUBLIC_STORE_DOMAIN,
},
scriptSrc: [
'self',
'https://cdn.shopify.com',
'https://shopify.com',
'https://www.google-analytics.com',
'https://www.googletagmanager.com',
...(process.env.NODE_ENV !== 'production' ? ['http://localhost:*'] : []),
],
});

const body = await renderToReadableStream(
Expand Down

0 comments on commit 0cd99c5

Please sign in to comment.