Skip to content

Commit

Permalink
Merge pull request #1650 from SUI-Components/rever-sui-ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosvillu authored Oct 19, 2023
2 parents 6026c8b + 7ddc4e5 commit ab5658a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/sui-ssr/server/middlewares/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ try {
const HEAD_OPENING_TAG = '<head>'
const HEAD_CLOSING_TAG = '</head>'

const CSP_REPORT_PATH = '/csp-report'
// const CSP_REPORT_PATH = '/csp-report'

const formatServerTimingHeader = metrics =>
Object.entries(metrics)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit ab5658a

Please sign in to comment.