From 67cf76a1fae35050e58bbfbc1110b403d0ca1fce Mon Sep 17 00:00:00 2001 From: Lucas Gelfond Date: Mon, 23 Dec 2024 20:09:53 -0800 Subject: [PATCH] set new server headers to debug GH actions --- apps/vanilla-app/server.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/vanilla-app/server.js b/apps/vanilla-app/server.js index adc32c56d8..fb4286840d 100644 --- a/apps/vanilla-app/server.js +++ b/apps/vanilla-app/server.js @@ -6,9 +6,16 @@ const PORT = 8080; const ROOT = path.join(__dirname, "public"); app.use((_, res, next) => { - res.setHeader("Cross-Origin-Opener-Policy", "same-origin"); - res.setHeader("Cross-Origin-Embedder-Policy", "require-corp"); - res.setHeader("Cross-Origin-Resource-Policy", "cross-origin"); + res.set({ + "Cross-Origin-Opener-Policy": "same-origin", + "Cross-Origin-Embedder-Policy": "require-corp", + "Cross-Origin-Resource-Policy": "cross-origin", + "Origin-Agent-Cluster": "?1", + "Access-Control-Allow-Origin": "*", + "Access-Control-Allow-Methods": "GET, POST, OPTIONS", + "Access-Control-Allow-Headers": + "Origin, X-Requested-With, Content-Type, Accept, Range", + }); next(); });