1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-12-02 21:22:41 +03:00

Improve Content-Security-Policy (#25210)

This commit is contained in:
Michael Telatynski
2023-04-26 14:49:35 +01:00
committed by GitHub
parent 59b6285458
commit afab95288e
2 changed files with 3 additions and 3 deletions

View File

@@ -99,8 +99,8 @@ module.exports = (env, argv) => {
const development = {};
if (devMode) {
// High quality, embedded source maps for dev builds
development["devtool"] = "eval-source-map";
// Embedded source maps for dev builds, can't use eval-source-map due to CSP
development["devtool"] = "inline-source-map";
} else {
if (process.env.CI_PACKAGE) {
// High quality source maps in separate .map files which include the source. This doesn't bulk up the .js