Skip to content

Commit

Permalink
build: CSP for captcha images
Browse files Browse the repository at this point in the history
  • Loading branch information
rocka committed Jun 21, 2019
1 parent 027de79 commit 66acaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/webpack.config.renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ if (isProd) {
// ref: https://github.com/jantimon/html-webpack-plugin/blob/v3.2.0/index.js#L479
cfg.plugins.find(p => p instanceof HtmlWebpackPlugin).options.meta = [{
'http-equiv': 'Content-Security-Policy',
content: `script-src 'self'; media-src http://localhost:* https://*.vod.126.net; img-src 'self' https://*.music.126.net`
content: `script-src 'self'; media-src http://localhost:* https://*.vod.126.net; img-src 'self' https://*.music.126.net https://music.163.com`
}];
cfg.plugins.push(
new MiniCSSExtractPlugin(),
Expand Down

0 comments on commit 66acaa2

Please sign in to comment.