Skip to content

Commit

Permalink
add createContentSecurityPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Sahay committed Jun 13, 2024
1 parent 1506df9 commit 18599eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/entry.server.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async function handleRequest(
responseHeaders,
remixContext,
) {
const {nonce, header, NonceProvider} = createContentSecurityPolicy({scriptSrc: ["'self'", "https://connect.nosto.com", "nosto.js"], connectSrc: ["'self'", "https://connect.nosto.com"], defaultSrc: ["'self'", "https://connect.nosto.com", "nosto"]});
const {nonce, header, NonceProvider} = createContentSecurityPolicy({scriptSrc: ["'self'", "https://connect.nosto.com", 'https://cdn.shopify.com'], connectSrc: ["'self'", "https://connect.nosto.com"], defaultSrc: ["'self'", "https://connect.nosto.com", 'https://cdn.shopify.com']});

const body = await renderToReadableStream(
<NonceProvider>
Expand Down

0 comments on commit 18599eb

Please sign in to comment.