Skip to content

Commit daefcc1

Browse files
committed
fix #1148
1 parent f4e8240 commit daefcc1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

server/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ app.use(addSiteIsolationForIndex);
112112
app.use('/frameworks', express.static(frameworkDirectory,
113113
{
114114
setHeaders: function(res, path) {
115-
if (addCSP) {
115+
if (addCSP && path.endsWith("index.html")) {
116+
console.log("adding CSP to ", path);
116117
res.setHeader('Content-Security-Policy', "default-src 'self'; report-uri /csp");
117118
}
118119
}

0 commit comments

Comments
 (0)