From 0c024ba68a9a438e7453f548c0ccc85bfa7bb67d Mon Sep 17 00:00:00 2001 From: Carlos Villuendas Zambrana Date: Thu, 19 Oct 2023 11:01:29 +0200 Subject: [PATCH] feat(packages/sui-ssr): revert csp report --- packages/sui-ssr/server/middlewares/ssr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sui-ssr/server/middlewares/ssr.js b/packages/sui-ssr/server/middlewares/ssr.js index 4c77007f5..24ecd3c6d 100644 --- a/packages/sui-ssr/server/middlewares/ssr.js +++ b/packages/sui-ssr/server/middlewares/ssr.js @@ -208,8 +208,8 @@ export default async (req, res, next) => { 'Server-Timing': formatServerTimingHeader({ ...performance, ...ssrPerformance - }), - 'Content-Security-Policy-Report-Only': `default-src 'self'; report-uri ${CSP_REPORT_PATH}` + }) + // 'Content-Security-Policy-Report-Only': `default-src 'self'; report-uri ${CSP_REPORT_PATH}` }) res.write(HtmlBuilder.buildHead({headTplPart, headString, htmlAttributes})) res.flush()