Skip to content

Commit

Permalink
feat(plugin-webpack): support for dev server custom headers (#3653)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Cui <[email protected]>
  • Loading branch information
rahul-sachdeva22 and BlackHole1 authored Sep 17, 2024
1 parent 9716565 commit 3c2a19b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin/webpack/src/WebpackPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ the generated files). Instead, it is ${JSON.stringify(pj.main)}`);
setupExitSignals: true,
static: path.resolve(this.baseDir, 'renderer'),
headers: {
...this.config.devServer?.headers,
'Content-Security-Policy': cspDirectives,
},
};
Expand Down

0 comments on commit 3c2a19b

Please sign in to comment.