Skip to content

Commit

Permalink
Merge branch 'csp'
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasKn committed Feb 11, 2024
2 parents 28dc678 + 0b14724 commit 3d68ce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
};
Expand Down

0 comments on commit 3d68ce7

Please sign in to comment.