From ee2190755d3e5a2773e282b450dbeea6ea619f5a Mon Sep 17 00:00:00 2001 From: Welly Shen Date: Sun, 9 Aug 2020 23:10:20 +0800 Subject: [PATCH] fix: CSP error --- package.json | 2 +- src/server.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3237767d..e952aaba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-cool-starter", - "version": "3.10.0", + "version": "3.10.1", "description": "A starter boilerplate for a universal web application with the best development experience and best practices.", "license": "MIT", "homepage": "https://github.com/wellyshen/react-cool-starter", diff --git a/src/server.tsx b/src/server.tsx index 8b640d58..d13bb6e0 100755 --- a/src/server.tsx +++ b/src/server.tsx @@ -23,7 +23,7 @@ import config from "./config"; const app = express(); // Use helmet to secure Express with various HTTP headers -app.use(helmet()); +app.use(helmet({ contentSecurityPolicy: false })); // Prevent HTTP parameter pollution app.use(hpp()); // Compress all requests