Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
update csp
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-phan committed Nov 27, 2023
1 parent 246b61b commit 9fe8807
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/weaverse/create-weaverse.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,24 @@ export function getWeaverseCsp(request: Request) {
frameAncestors: weaverseHosts,
defaultSrc: [
"'self'",
'https://cdn.shopify.com',
'https://shopify.com',
'https://*.youtube.com',
'https://*.google.com',
'cdn.shopify.com',
'shopify.com',
'*.youtube.com',
'*.google.com',
'fonts.gstatic.com',
...weaverseHosts,
],
imgSrc: [
"'self'",
"data:",
'https://cdn.shopify.com',
'cdn.shopify.com',
...weaverseHosts,
],
styleSrc: [
"'self'",
"'unsafe-inline'",
'fonts.googleapis.com',
'https://cdn.shopify.com',
'cdn.shopify.com',
...weaverseHosts,
],
};
Expand Down

0 comments on commit 9fe8807

Please sign in to comment.