Merge pull request #7105 from overleaf/jpa-static-no-csp

[web] remove CSP header from static assets

GitOrigin-RevId: 2f12974f490ff22796ed74c38a466fe4649877c1
This commit is contained in:
Jakob Ackermann
2022-03-18 09:03:07 +00:00
committed by Copybot
parent 224edddad4
commit 29aa7c622a
3 changed files with 8 additions and 5 deletions
-5
View File
@@ -3,7 +3,6 @@ const merge = require('webpack-merge')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const base = require('./webpack.config')
const { buildDefaultPolicy } = require('./app/src/infrastructure/CSP')
module.exports = merge(base, {
mode: 'development',
@@ -31,10 +30,6 @@ module.exports = merge(base, {
port: 3808,
public: 'www.dev-overleaf.com:443',
headers: {
'Content-Security-Policy': buildDefaultPolicy(),
},
// Customise output to the (node) console
stats: {
colors: true, // Enable some coloured highlighting