Skip to content

Commit

Permalink
Fix CSP in start:prod
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Feb 13, 2024
1 parent de9ad26 commit f0a75db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/1849.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix CSP in start:prod
2 changes: 1 addition & 1 deletion internals/scripts/serve-prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path')
const http = require('http')
const serveHandler = require('serve-handler')
const { getCsp, getPermissionsPolicy } = require('../getSecurityHeaders.js')
const csp = getCsp({ isDev: false, isExtension: true })
const csp = getCsp({ isDev: false, isExtension: false })
const permissionsPolicy = getPermissionsPolicy()
console.log(`Content-Security-Policy: ${csp}\n`)
console.log(`Permissions-Policy: ${permissionsPolicy}\n`)
Expand Down

0 comments on commit f0a75db

Please sign in to comment.