Skip to content

Commit

Permalink
fix(/respec/builds): loosen/remove CSP/COOP/CORP
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Sep 18, 2024
1 parent b92c7d9 commit 3906821
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions routes/respec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ router.put(
);
router.use(
"/builds",
(_req, res, next) => {
res.removeHeader("content-security-policy");
res.removeHeader("cross-origin-opener-policy");
res.removeHeader("cross-origin-resource-policy");
next();
},
express.static(path.join(PKG_DIR, "builds"), { maxAge: ms("10m") }),
);
router.post(
Expand Down

0 comments on commit 3906821

Please sign in to comment.