Skip to content

Commit

Permalink
fix img-src CSP directive
Browse files Browse the repository at this point in the history
fix CSP directive

.

.
  • Loading branch information
juanpprieto committed Nov 14, 2023
1 parent d7e3537 commit c707402
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ export default async function handleRequest(
// 1. Add the Rick & Morty CDN to the list of allowed image sources
const {nonce, header, NonceProvider} = createContentSecurityPolicy({
imgSrc: [
"'self'",
'http://localhost:3000',
'https://*.o2.myshopify.dev',
'data:',
'https://cdn.shopify.com',
'https://shopify.com',
'https://rickandmortyapi.com/api',
'https://rickandmortyapi.com/api/character',
],
});

Expand Down

0 comments on commit c707402

Please sign in to comment.