Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoaugustin committed Aug 5, 2024
1 parent df62b0d commit 700768e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/supex/src/plugins/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async function generateManifest({ server, outdir, browser, isBuild, metafile }:
if (!security) security = {};
if (!security['default-src']) security['default-src'] = "'self'";
const policy = Object.entries(security).reduce(
(string, [name, value]) => `${string} ${name} ${value}${name === 'default-src' ? ` ${server}` : ''};`,
(string, [name, value]) => `${string} ${name} ${value}${name === 'default-src' && !isBuild ? ` ${server}` : ''};`,
'',
);

Expand Down

0 comments on commit 700768e

Please sign in to comment.