Skip to content

Commit

Permalink
allow any frame ancestor in dev (github#34109)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebonsignori authored Jan 24, 2023
1 parent a9cddcf commit 0ffbb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/helmet.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const DEFAULT_OPTIONS = {
isDev && 'http://localhost:3000',
'https://www.youtube-nocookie.com',
].filter(Boolean),
frameAncestors: [...GITHUB_DOMAINS],
frameAncestors: isDev ? ['*'] : [...GITHUB_DOMAINS],
styleSrc: ["'self'", "'unsafe-inline'", 'data:', AZURE_STORAGE_URL],
childSrc: ["'self'"], // exception for search in deprecated GHE versions
upgradeInsecureRequests: isDev ? null : [],
Expand Down

0 comments on commit 0ffbb52

Please sign in to comment.