From 429d9b2339dab72f0e4afddbf1c2a030738aa99f Mon Sep 17 00:00:00 2001 From: Ivan Beloborodov Date: Fri, 22 Dec 2023 20:40:14 +0300 Subject: [PATCH] Third-party data file access #1099 --- webpack/webpack.dev.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webpack/webpack.dev.js b/webpack/webpack.dev.js index 9a2affdc..c3a0a8a8 100644 --- a/webpack/webpack.dev.js +++ b/webpack/webpack.dev.js @@ -50,7 +50,13 @@ base.plugins.push( new HtmlWebpackPlugin({ template: path.resolve(__dirname, "../src/index.dev.html"), favicon: path.resolve(__dirname, "../src/favicon.ico"), - filename: _.outputIndexPath + filename: _.outputIndexPath, + meta: { + "Content-Security-Policy": { + "http-equiv": "Content-Security-Policy", + "content": "upgrade-insecure-requests" + } + } }), new webpack.DefinePlugin({ "process.env.NODE_ENV": JSON.stringify("development"),