Skip to content

Commit

Permalink
fix(/respec/builds): remove CSP/COOP/CORP (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Sep 18, 2024
1 parent b92c7d9 commit 52c8d47
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 52c8d47

Please sign in to comment.