diff --git a/packages/sui-ssr/server/middlewares/ssr.js b/packages/sui-ssr/server/middlewares/ssr.js index 4c77007f5..37676ccc1 100644 --- a/packages/sui-ssr/server/middlewares/ssr.js +++ b/packages/sui-ssr/server/middlewares/ssr.js @@ -37,7 +37,7 @@ try { const HEAD_OPENING_TAG = '' const HEAD_CLOSING_TAG = '' -const CSP_REPORT_PATH = '/csp-report' +// const CSP_REPORT_PATH = '/csp-report' const formatServerTimingHeader = metrics => Object.entries(metrics) @@ -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()